public MainWindow()
        {
            InitializeComponent();

            if (TestConnection())
            {
                HomePage hp = new HomePage("10.0.1.2");
                myFrame.NavigationService.Navigate(hp);
            }
            else
            {
                GetIPPage ip = new GetIPPage();
                myFrame.NavigationService.Navigate(ip);
            }
            myFrame.NavigationUIVisibility = NavigationUIVisibility.Hidden;
        }
示例#2
0
        private void btnNewIP_Click(object sender, RoutedEventArgs e)
        {
            GetIPPage ip = new GetIPPage();

            NavigationService.Navigate(ip);
        }