コード例 #1
0
ファイル: MainForm.cs プロジェクト: BradAricW/SeniorProject
        } // end admin select user button

        private void AdminAddUserButton_Click(object sender, EventArgs e)
        {
            if (adminEmployeeIDBox.Text == "" || adminEmployeeIDBox.Text == null)
            {
                MessageBox.Show("Please add employee ID");
            }
            else if (adminEmailBox.Text == "" || adminEmailBox.Text == null)
            {
                MessageBox.Show("Please add employee email");
            }
            else if (adminPassBox.Text == "" || adminPassBox.Text == null)
            {
                MessageBox.Show("Please add employee password");
            }
            else
            {
                admin.NewEmployee(adminEmployeeIDBox, adminFNameBox, adminLNameBox, adminEmailBox, adminPhoneBox, adminPassBox, adminHoursBox, adminCheckBox, activeCheckBox);
                admin.DisplayEmployees(adminEmployeeGrid);
            }
        } // end admin add user button
コード例 #2
0
 private void AdminAddUserButton_Click(object sender, EventArgs e)
 {
     admin.NewEmployee(adminEmployeeIDBox, adminFNameBox, adminLNameBox, adminEmailBox, adminPhoneBox, adminPassBox, adminHoursBox, adminCheckBox);
     admin.DisplayEmployees(adminEmployeeGrid);
 }