public override void Close() { if (_uiChildWindowForm != null) { _uiChildWindowForm.Dispose(); _uiChildWindowForm = null; } base.Close(); }
public override bool Initialize(Framework.Interfaces.ICore core) { bool result = false; _uiChildWindowForm = CreateUIChildWindowForm(core); if (_uiChildWindowForm != null) { _uiChildWindowForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_uiChildWindowForm_FormClosed); result = base.Initialize(core); } return result; }
public async override Task<bool> InitializeAsync(Framework.Interfaces.ICore core) { if (UtilsSettings.Instance == null) { var p = new UtilsSettings(core); } bool result = false; _uiChildWindowForm = CreateUIChildWindowForm(core); if (_uiChildWindowForm != null) { _uiChildWindowForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_uiChildWindowForm_FormClosed); result = await base.InitializeAsync(core); } return result; }
public async override Task <bool> InitializeAsync(Framework.Interfaces.ICore core) { if (UtilsSettings.Instance == null) { var p = new UtilsSettings(core); } bool result = false; _uiChildWindowForm = CreateUIChildWindowForm(core); if (_uiChildWindowForm != null) { _uiChildWindowForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(_uiChildWindowForm_FormClosed); result = await base.InitializeAsync(core); } return(result); }