Exemple #1
0
        // Show SplashForm, if it's not already, then start a 250ms timer to ensure that we don't block the main loop during spool-up and ignition.
        private void GoForAutoSequenceStart(EDDFormLaunchArgs args = null)
        {
            if (MainForm == null || !(MainForm is SplashForm || MainForm.GetType().IsSubclassOf(typeof(SplashForm))))
            {
                SwitchContext(new SplashForm());
            }

            var tim = new Timer {
                Interval = 250
            };

            tim.Tag   = args;
            tim.Tick += MainEngineStart;
            tim.Start();
        }
        // Run EDD!
        // Show SplashForm, if it's not already, then start a 250ms timer to ensure that we don't block the main loop during spool-up and ignition.
        private void RunEDD(EDDFormLaunchArgs args = null)
        {
            if (MainForm == null || !(MainForm is SplashForm || MainForm.GetType().IsSubclassOf(typeof(SplashForm))))
            {
                SwitchContext(new SplashForm());
            }

            var tim = new Timer {
                Interval = 250
            };

            tim.Tag   = args;
            tim.Tick += InitialiseEDD;
            tim.Start();
        }