public void Start() { logLevel = _2InfoDisplay_DebugOut.GetConfiguredLogLevel(); if (theForm != null) { throw new ArgumentException("theForm != null"); } theForm = _2InfoDisplay_FromApp_TheForm.CreateAndStart(AreWeReady); TheApp = this; }
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); }