private void back(object sender, RoutedEventArgs e)
        {
            Window back = new HRMCandidateEmployee(employee);

            back.Show();
            this.Close();
        }
Beispiel #2
0
        private void candidateemp(object sender, RoutedEventArgs e)
        {
            Window a = new HRMCandidateEmployee(employee);

            a.Show();
            this.Close();
        }
        private void delete(object sender, RoutedEventArgs e)
        {
            connect.executeUpdate("delete from candidate where id = '" + id + "'");
            MessageBox.Show("Success Deleting Candidate Employee!");
            Window back = new HRMCandidateEmployee(employee);

            back.Show();
            this.Close();
        }
 private void update(object sender, RoutedEventArgs e)
 {
     if (combobox.SelectedValue.Equals(division))
     {
         MessageBox.Show("You cannot update to the same division!");
         return;
     }
     else
     {
         connect.executeUpdate("update candidate set division = '" + combobox.SelectedValue + "' where id = '" + id + "'");
         MessageBox.Show("Success Update Division!");
         Window back = new HRMCandidateEmployee(employee);
         back.Show();
         this.Close();
     }
 }