public override void Close() { if (_uiMainWindowForm != null) { _uiMainWindowForm.Dispose(); _uiMainWindowForm = null; } base.Close(); }
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; }
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); }