Beispiel #1
0
 public override void Close()
 {
     if (_uiMainWindowForm != null)
     {
         _uiMainWindowForm.Dispose();
         _uiMainWindowForm = null;
     }
     base.Close();
 }
Beispiel #2
0
 public override void Close()
 {
     if (_uiMainWindowForm != null)
     {
         _uiMainWindowForm.Dispose();
         _uiMainWindowForm = null;
     }
     base.Close();
 }
Beispiel #3
0
 public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core)
 {
     bool result = await base.InitializeAsync(core);
     if (result)
     {
         _uiMainWindowForm = CreateUIMainWindowForm(core);
         if (_uiMainWindowForm != null)
         {
             _uiMainWindowForm.Show();
             _uiMainWindowForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_uiMainWindowForm_FormClosed);
         }
     }
     return result;
 }
Beispiel #4
0
        public async override Task <bool> InitializeAsync(Framework.Interfaces.ICore core)
        {
            bool result = await base.InitializeAsync(core);

            if (result)
            {
                _uiMainWindowForm = CreateUIMainWindowForm(core);
                if (_uiMainWindowForm != null)
                {
                    _uiMainWindowForm.Show();
                    _uiMainWindowForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_uiMainWindowForm_FormClosed);
                }
            }
            return(result);
        }