コード例 #1
0
 public static MinerClientsWindow ShowWindow()
 {
     if (_instance == null)
     {
         _instance = new MinerClientsWindow();
     }
     _instance.Show();
     if (_instance.WindowState == WindowState.Minimized)
     {
         _instance.WindowState = WindowState.Normal;
     }
     _instance.Activate();
     return(_instance);
 }
コード例 #2
0
 public static MinerClientsWindow ShowWindow()
 {
     if (_sWindow == null)
     {
         _sWindow = new MinerClientsWindow();
     }
     _sWindow.Show();
     if (_sWindow.WindowState == WindowState.Minimized)
     {
         _sWindow.WindowState = WindowState.Normal;
     }
     _sWindow.Activate();
     return(_sWindow);
 }