コード例 #1
0
        private void cancelNewBtn_Click(object sender, EventArgs e)
        {
            EmployeeAdding employeeAdding = new EmployeeAdding(ctx);

            employeeAdding.CancelButtonPressed(nameTextBox2,
                                               departmentComboBox2,
                                               cathedraComboBox2,
                                               emailTextBox2,
                                               degreeComboBox2,
                                               yearTextBox2,
                                               ratingTextBox2,
                                               employeePhotoPB
                                               );
        }
コード例 #2
0
        private void saveNewBtn_Click(object sender, EventArgs e)
        {
            EmployeeAdding employeeAdding = new EmployeeAdding(ctx, this);

            employeeAdding.AddEmployeeButtonPressed(nameTextBox2,
                                                    departmentComboBox2,
                                                    cathedraComboBox2,
                                                    emailTextBox2,
                                                    degreeComboBox2,
                                                    yearTextBox2,
                                                    ratingTextBox2,
                                                    employeePhotoPB,
                                                    dgv
                                                    );
            MainForm mainForm = new MainForm();

            dgv.DataSource = mainForm.GetMainDGVBindingSource();
            this.Close();
        }