public void AddStundenCommand_Click() { Dialog.DStundenAddEdit AddStunden = new Dialog.DStundenAddEdit(); if (AddStunden.ShowDialog() == true) { _DB.AddStunden(AddStunden.Value, Selected); } Load(); Selected = null; SelectedStunden = null; }
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; }