Beispiel #1
0
        public MainView(IAppContext context)
        {
            if (DesignMode == false)
            {
                Logger.Current.Trace("Start Main View");
            }
            _context = context;
            if (DesignMode == false)
            {
                Logger.Current.Trace("Start MainView InitializeComponent");
            }
            InitializeComponent();
            {
                Logger.Current.Trace("End MainView InitializeComponent");


                statusStripEx1.Items.Clear();
                statusStripEx1.Refresh();

                ToolTipHelper.Init(this.superToolTip1);

                this.FormClosing += MainView_FormClosing;

                this.Shown += MainView_Shown;
                Logger.Current.Trace("End MainView");
            }
        }
Beispiel #2
0
        public NewMainView(IAppContext context)
        {
            Logger.Current.Trace("启动主界面");
            _context = context;

            Logger.Current.Trace("开始初始化界面");
            InitializeComponent();
            Logger.Current.Trace("结束界面初始化");

            statusStripEx1.Items.Clear();
            statusStripEx1.Refresh();

            ToolTipHelper.Init(superToolTip1);

            FormClosing += NewMainView_FormClosing;

            // setting bar item text before form is shown results in creation of duplicated bar item;
            // it seems it's a bug in Syncfusion's XpMenus
            Shown += (s, e) =>
            {
                _rendered = true;

                // UpdateView();

                // ForceTaskBarDisplay();
            };
            Logger.Current.Trace("End MainView");
        }