private void AddTodo_Click(object sender, MouseButtonEventArgs e) { if (EditToDo.Show(this.core, this, this.cosplan.Nummer)) { this.LoadToDos(); } }
public static bool Show(Core core, WPFBase parent, int cosplan_nr) { EditToDo edit = new EditToDo(parent) { core = core, cosplan_nr = cosplan_nr }; edit.ShowDialog(); return(edit.Saved); }