Exemplo n.º 1
0
        public override bool Init()
        {
            base.Init();

            // ClodoTemp

            /*
             * Forms.WindowSplash splash = new Forms.WindowSplash();
             * splash.Visible = true;
             *
             * for (int i = 0; i < 100; i++)
             * {
             *      splash.SetStatus(i.ToString());
             *      Thread.Sleep(10);
             * }
             */

            GuiUtils.Init();

            Instance = this;

            if (Engine == null)
            {
                Engine = new Eddie.Forms.Engine();
            }
            Engine.TerminateEvent += Engine_TerminateEvent;

            if (Engine.Initialization(false) == false)
            {
                return(false);
            }

            FormMain        = new Eddie.Forms.Forms.Main();
            Engine.FormMain = FormMain;             // ClodoTemp2 - remove?

            Engine.Instance.UiManager.Add(this);

            Engine.UiStart();

            FormMain.LoadPhase();

            AppContext = new ApplicationContext();


            // ClodoTemp

            /*
             * splash.RequestClose();
             */

            return(true);
        }
Exemplo n.º 2
0
        public override bool Init(string environmentCommandLine)
        {
            Instance = this;

            AppContext = new ApplicationContext();

            base.Init(environmentCommandLine);

            GuiUtils.Init();

            SplashWindow = new Forms.WindowSplash();
            SplashWindow.Show();

            if (Engine == null)
            {
                Engine = new Eddie.Forms.Engine(environmentCommandLine);
            }
            Engine.TerminateEvent += Engine_TerminateEvent;
            Engine.UiManager.Add(this);

            Engine.Start();

            return(true);
        }