private void DisplayButton_Click(object sender, EventArgs e) { DisplayForm displayfrm = new DisplayForm(); displayfrm.Show(); //this.Hide(); }
public void Display(DisplayForm form) { //DisplayForm form = new DisplayForm(); for (int i = 0; i < EmployeesList.Count; i++) { form.Emplyees_dataGrid.Rows.Add(EmployeesList[i].SSN.ToString(), EmployeesList[i].FName, EmployeesList[i].LName, EmployeesList[i].Salary.ToString(), EmployeesList[i].Phone.ToString(), EmployeesList[i].Department, EmployeesList[i].Gender); } }