Exemple #1
0
        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);
        }