public FormStatisticEmployee() { InitializeComponent(); Dictionary <string, Chart> charts = new Dictionary <string, Chart>(); charts.Add("Age", chartAge); charts.Add("Salary", chartSalary); controller = new ControllerEmployee(charts); }
public FormEmployee() { InitializeComponent(); Dictionary <string, TextBox> textBoxs = new Dictionary <string, TextBox>(); Dictionary <string, RadioButton> radioButtons = new Dictionary <string, RadioButton>(); textBoxs.Add("FirstName", tbFirstName); textBoxs.Add("LastName", tbLastName); textBoxs.Add("Email", tbEmail); textBoxs.Add("Telephone", tbTelephone); textBoxs.Add("Adress", tbAdress); textBoxs.Add("Salary", tbSalary); textBoxs.Add("Pasport", tbPasport); radioButtons.Add("Male", rBMale); radioButtons.Add("Female", rBFemale); controller = new ControllerEmployee(dgv, bn, textBoxs, dTPBirth, radioButtons, cbPosition); controller.FillColumns(); }