Пример #1
0
 public override void Stop()
 {
     log.Info("Stopping module");
     if (_mainWindow != null)
     {
         log.Info("Closing module window");
         _mainWindow.Close();
         _mainWindow = null;
     }
     base.Stop();
 }
Пример #2
0
 private void ShowMainWindow()
 {
     log.Info("Initializing");
     if (_mw == null)
     {
         log.Info("Instantiating module window");
         _mw = _mainWindow = new ModuleWindow(Name);
         _mainWindow.Closed += ModuleStopping;
     }
     _mw.Show();
 }