private void Create_Click(object sender, RoutedEventArgs e) { this.Close(); CreateToDoList nextpage = new CreateToDoList(_userId, 0); nextpage.ShowDialog(); }
private void Edit_Click(object sender, RoutedEventArgs e) { if (_toDoId == 0) { errorMessageContact.Content = "Eine Todo-Liste muss zum Beareiten ausgewählt werden."; } else { this.Close(); CreateToDoList nextpage = new CreateToDoList(_userId, _toDoId); nextpage.ShowDialog(); } }