예제 #1
0
        private void backButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            serverFacade.threadEvent -= guiThread_MessageReceive;
            NavigationScreen navScreen = new NavigationScreen(serverFacade);

            navScreen.Show();
        }
예제 #2
0
        private void connectToButton_Click(object sender, RoutedEventArgs e)
        {
            int port;

            port = int.Parse(portBox.Text);
            string serverName;

            serverName = serverNameBox.Text;

            ServerFacade servicefacade = new ServerFacade(port, serverName);

            NavigationScreen navigationScreen = new NavigationScreen(servicefacade);

            this.Close();
            navigationScreen.Show();
        }