public static void Initialize() { try { Window.KeepWindowsInScreen = false; } catch { throw new Exception("A"); } try { mActivityWindow = new ActivityWindow(); } catch { throw new Exception("B"); } try { #region Menu Strip mMenuStrip = new Menu(); #endregion } catch { throw new Exception("B"); } try { mEmitterListBoxWindow = new EmitterListBoxWindow(Messages); } catch { throw new Exception("B"); } #region tools window mToolsWindow = new ParticleEditor.GUI.ToolsWindow(GuiManager.Cursor); // copyEmitter.onClick += new FrbGuiMessage(messages.copyEmitter); #endregion CreatePropertyGrids(); Window.KeepWindowsInScreen = true; }