Beispiel #1
0
        private void Add_Training_Click(object sender, EventArgs e)
        {
            Add_Edit_Training AddTraining = new Add_Edit_Training(1, CurrentUser);

            AddTraining.ShowDialog();
            this.Refresh();
        }
Beispiel #2
0
 private void Edit_Training_Click(object sender, EventArgs e)
 {
     if (this.Training_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_Training EditTrainig = new Add_Edit_Training(2, CurrentUser);
         EditTrainig.SetDataBeforEdit(this.Training_List_View, this.Training_List_View.CurrentRow.Index);
         EditTrainig.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE Record To Edit");
     }
 }