Beispiel #1
0
        protected override void ProcessStartupActions()
        {
            base.ProcessStartupActions();
            if (UseSQLAlternativeInfoSingleton.Instance.UseAlternative)
            {
                PopupWindowShowAction showUseSQLAlternativeInfoAction = new PopupWindowShowAction();
                IObjectSpace          objectSpace           = this.CreateObjectSpace(typeof(UseSQLAlternativeInfo));
                UseSQLAlternativeInfo useSqlAlternativeInfo = objectSpace.GetObject <UseSQLAlternativeInfo>(UseSQLAlternativeInfoSingleton.Instance.Info);
                showUseSQLAlternativeInfoAction.CustomizePopupWindowParams += delegate(Object sender, CustomizePopupWindowParamsEventArgs e) {
                    e.View = this.CreateDetailView(objectSpace, useSqlAlternativeInfo, true);
                    e.DialogController.CancelAction.Active["Required"] = false;
                    e.IsSizeable = false;
                };
                Tracing.Tracer.LogVerboseText("showSQLAlternativeInfoAction is executing");
                StopSplash();//Dennis: We do not need to display splash while these startup windows are shown.
                showUseSQLAlternativeInfoAction.Application      = this;
                showUseSQLAlternativeInfoAction.HandleException += (s, e) => {
                    if (!e.Handled)
                    {
                        HandleException(e.Exception);
                        e.Handled = true;
                    }
                };

                using (PopupWindowShowActionHelper helper = new PopupWindowShowActionHelper(showUseSQLAlternativeInfoAction)) {
                    helper.ShowPopupWindow();
                }
                Tracing.Tracer.LogText("showSQLAlternativeInfoAction executed");
            }
        }
 protected override void ShowObjectCore() {
     var helper = new PopupWindowShowActionHelper(ShowObjectAction);
     helper.ShowPopupWindow();
 }
Beispiel #3
0
        protected override void ShowObjectCore()
        {
            var helper = new PopupWindowShowActionHelper(ShowObjectAction);

            helper.ShowPopupWindow();
        }