Exemple #1
0
 public void Start()
 {
     logLevel = _2InfoDisplay_DebugOut.GetConfiguredLogLevel();
     if (theForm != null)
     {
         throw new ArgumentException("theForm != null");
     }
     theForm = _2InfoDisplay_FromApp_TheForm.CreateAndStart(AreWeReady);
     TheApp  = this;
 }
Exemple #2
0
        public static _2InfoDisplay_FromApp_TheForm CreateAndStart(ManualResetEvent setOnGo)
        {
            readyEvent = setOnGo;
            _2InfoDisplay_FromApp_TheForm f = null;

            internalThread = new Thread(new ThreadStart(delegate()
            {
                f = new _2InfoDisplay_FromApp_TheForm();
                f.FormInit(
                    "_2InfoDisplay.FromApp.HaveFormOnTheEdge".IsConfiguredAndTRUE(),
                    "_2InfoDisplay.FromApp.BetterFormPosition".GetConfig()
                    );
                Application.Run(f);
            }));
            internalThread.Start();
            HideConsole.DoHide();
            readyEvent.WaitOne();
            return(f);
        }