private void Back_Click(object sender, RoutedEventArgs e) { this.Close(); ContactWindow nextpage = new ContactWindow(this.userId); nextpage.ShowDialog(); }
private void Delete_Click(object sender, RoutedEventArgs e) { if (selectedContact != null) { _service.DeleteContact(selectedContact.Id); ContactWindow nextpage = new ContactWindow(userId); nextpage.Show(); this.Close(); } else { errorMessageContact.Content = "Ein Kontakt muss gewählt sein."; } }
private void Contact_Click(object sender, RoutedEventArgs e) { ContactWindow nextpage = new ContactWindow(userId); nextpage.ShowDialog(); }