Hello!
I am working with two classes. MainForm and EmployeeRegistry. In EmployeeRegistry I got a method that adds to a List (addToList).
public void AddToList(...)
{
employeeList.Add(...);
}
In MainForm I created an object of EmployeeRegistry and I want to send another object (with information) into the EmployeeRegistry.AddToList method to add to the list.
EmployeeRegistry employeeRegistry= new EmployeeRegistry();
employeeRegistry.AddToList(...);
How is this done (on both sides)?
Thankful for all help!