Пример #1
0
      private void Button_Click(object sender, RoutedEventArgs e)
      {
          EmployeeTable selected_employee = (EmployeeTable)CustomerSelectionComboBox.SelectedItem;

          EmployeesBL.UpdateBL(selected_employee, firstname_txb.Text, lastName_txb.Text, address_txb.Text, phone_txb.Text, mail_txb.Text, Int32.Parse(status_txb.Text), Int32.Parse(salary_txb.Text), notes_txb.Text);
          this.Close();
      }
Пример #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     EmployeesBL.InsertBL(tb_firstName.Text, tb_lasrName.Text, tb_address.Text, tb_phone.Text, tb_mail.Text, 0, tb_notes.Text, Convert.ToInt32(tb_salary.Text));
     this.Close();
 }