Пример #1
0
        private void OpenConnectWindow(object sender, RoutedEventArgs e)
        {
            this.IsEnabled = false;
            ConnectWindow cWindow = new ConnectWindow(clientSocket, this);

            cWindow.Show();
            cWindow.Closed += new EventHandler((a, ev) => Dispatcher.Invoke(new Action(() =>
            {
                gbRemoteConf.IsEnabled = clientSocket.IsConnected;
                this.IsEnabled         = true;
            })));
        }
Пример #2
0
 private void OpenConnectWindow(object sender, RoutedEventArgs e)
 {
     this.IsEnabled = false;
     ConnectWindow cWindow = new ConnectWindow(clientSocket, this);
     cWindow.Show();
     cWindow.Closed += new EventHandler((a, ev) => Dispatcher.Invoke(new Action(() =>
         {
             gbRemoteConf.IsEnabled = clientSocket.IsConnected;
             this.IsEnabled = true;
         })));
 }