public FormMain() { InitializeComponent(); //_dispatchDr = Dispatcher.CurrentDispatcher; mainB = new GuiBase(this); if (SessionInfo.FullScreen) { mainB.VideoInit(true); tabLowDev.Dispose(); lblVlcNotify.Dispose(); lblEvent.Dispose(); //GC.WaitForFullGCComplete(); } else { mainB.InitGuiControls(); mainB.InitGuiDeviceInfo(); mainB.InitGuiRecord(); mainB.DeviceTextBoxesUpdate(false); mainB.AddFormEvents(); mainB.VideoInit(false); } FormClosing += FormMain_FormClosing; }