private void NavigateToProfileEditor(object sender, RoutedEventArgs e) { // Navigate to IP Profile Editor IpProfile selectedProfile = (IpProfile)this.profilesListBox.SelectedItem; if (selectedProfile != null) { IpManEditor profileEditorPage = new IpManEditor(selectedProfile); this.NavigationService.Navigate(profileEditorPage); } else { MessageBox.Show("Bitte wählen Sie ein Profil aus, welches editiert werden soll"); } }
private void NavigateToEmptyProfileEditor(object sender, RoutedEventArgs e) { IpManEditor profileEditorPage = new IpManEditor(new IpProfile("Neues Profil", "")); this.NavigationService.Navigate(profileEditorPage); }