示例#1
0
        public void StartSection( )
        {
            SystemProvider.StartSection();
            if (SystemProvider.SystemConfig.IsRelease)
            {
                ABCUserProvider.SynchronizePermission();
                //     InventoryProvider.PeriodEndingProcessings();
            }

            ABCScreen.SplashUtils.ShowSplash(LoginType.Studio);

            CloseTrialTimer          = new System.Timers.Timer();
            CloseTrialTimer.Interval = 10;
            CloseTrialTimer.Elapsed += new System.Timers.ElapsedEventHandler(CloseDevexpressTrialForm);
            CloseTrialTimer.Start();

            MainStudio = new Studio(false);

            if (CustomizeView != null)
            {
                (MainStudio as Studio).Worker.OpenFromDatabase(CustomizeView);
                (MainStudio as Studio).RefreshFieldBindingTree(true);
            }

            ABCScreen.SplashUtils.CloseSplash();

            MainStudio.ShowDialog();
        }
示例#2
0
        public void StartSection( )
        {
            SystemProvider.StartSection();

            Application.ThreadExit += new EventHandler(Application_ThreadExit);
            MainForm             = new MainForm();
            MainForm.FormClosed += new FormClosedEventHandler(MainForm_FormClosed);

            ABCScreen.SplashUtils.CloseSplash();
            MainForm.ShowDialog();
        }