Esempio n. 1
0
        public void SwitchWindows()
        {
            ServerWindow nWindow = new ServerWindow();

            nWindow.Left = window.Left;
            nWindow.Top  = window.Top;
            nWindow.Show();
            window.Close();
        }
Esempio n. 2
0
 public void SwitchWindows()
 {
     window.Dispatcher.Invoke(() =>
     {
         ServerWindow nWindow = new ServerWindow();
         nWindow.Left         = window.Left;
         nWindow.Top          = window.Top;
         nWindow.Show();
         window.Close();
     });
 }