public virtual void Run() { // g.Overlay = this; // g.Graphics = Window.Graphics; // g.Window = Window; Window.Create(); while (!Window.Graphics.IsInitialized) { Thread.Sleep(10); } if (UseHook) { StartHook(); } Window.Deactivate(); DxWindow = new DxWindow(this, ""); Loaded = true; }