Exemplo n.º 1
0
 /// <summary>
 /// 欢迎窗体的关闭方法
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private static void StartupWindowClosing(object sender, EventArgs e)
 {
     if (_startupWindow == null)
     {
         return;
     }
     _startupWindow.Close();
     _logger.Info(LogString.Normal(StringService.CoreWorkbenchAlreadyClosed));
 }
Exemplo n.º 2
0
        /// <summary>
        /// 调入EasternArt主窗体进行显示.
        /// </summary>
        public static void CallCoreWorkbench(Form window)
        {
            _startupWindow = window;

            CoreWorkbench bench = new CoreWorkbench();

            bench.Closing += new CancelEventHandler(StartupWindowClosing);
            bench.Show();
            window.Activate();
            _logger.Info(LogString.Normal(StringService.CoreWorkbenchGettingOpened));
        }
Exemplo n.º 3
0
        /// <summary>
        /// 初始化所有的服务
        /// </summary>
        public static void InitializeService()
        {
            _informationsService.AddStartupInformation(StringService.ServiceManagerGettingStarted);
#if DEBUG
            _informationsService.Demo_AddStartupInformation(8);
#endif
            _logger.Info(LogString.Normal("ServiceManager"));
            //初始化完成,置完成状态为真
            _initializeState = true;
            _informationsService.AddStartupInformation(StringService.ServiceManagerActivated);
        }