示例#1
0
        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");
            }
        }
示例#2
0
        private void NavigateToEmptyProfileEditor(object sender, RoutedEventArgs e)
        {
            IpManEditor profileEditorPage = new IpManEditor(new IpProfile("Neues Profil", ""));

            this.NavigationService.Navigate(profileEditorPage);
        }