Example #1
0
 public void AddStundenCommand_Click()
 {
     Dialog.DStundenAddEdit AddStunden = new Dialog.DStundenAddEdit();
     if (AddStunden.ShowDialog() == true)
     {
         _DB.AddStunden(AddStunden.Value, Selected);
     }
     Load();
     Selected        = null;
     SelectedStunden = null;
 }
Example #2
0
 public void EditStundenCommand_Click()
 {
     Dialog.DStundenAddEdit EditStunden = new Dialog.DStundenAddEdit(SelectedStunden);
     if (EditStunden.ShowDialog() == true)
     {
         _DB.UpdateStunden(EditStunden.Value);
     }
     ValueStunden.Clear();
     LoadStunden(Selected);
     Selected        = null;
     SelectedStunden = null;
 }