Exemplo n.º 1
0
        public FormStatisticEmployee()
        {
            InitializeComponent();
            Dictionary <string, Chart> charts = new Dictionary <string, Chart>();

            charts.Add("Age", chartAge);
            charts.Add("Salary", chartSalary);
            controller = new ControllerEmployee(charts);
        }
Exemplo n.º 2
0
        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();
        }