예제 #1
0
        private void BtnAddEmployee_Click(object sender, EventArgs e)
        {
            string _firstName    = TxtFirstName.Text;
            string _lastName     = TxtLastName.Text;
            string _employeeType = CBoxEmployeeSelector.SelectedItem.ToString().Remove(0, 4);

            /*
             *
             * Code that will run inputs through correct channels.
             * Code to write employee to database after being clicked.
             * Code to also check that Employee info is inputted correctly.
             *
             */
            br.CreateEmployee(_firstName, _lastName, _employeeType);
            ComboBoxFormatter();
            TxtFirstName.Text = "";
            TxtLastName.Text  = "";
        }