public override void LaunchProcess() { try { App.MainWnd.Topmost = false; MonitorManager maneger = new MonitorManager(); _currentProcess.Start(); _currentProcess.WaitForInputIdle(); while (!IsProcessVrPlayerCreated()) { Thread.Sleep(100); } App.MainWnd.WindowState = System.Windows.WindowState.Normal; App.MainWnd.WindowState = System.Windows.WindowState.Maximized; if (MonitorNumber != null) { maneger.SetLocations((int)MonitorNumber); } switch (MonitorNumber) { case 1: MonitorManager.CenteredCursorInLeft(); break; case 2: MonitorManager.CenteredCursorInRight(); break; } ClientService service = new ClientService(); service.ChangeToampostMode(true); base.LaunchProcess(); } catch (Exception ex) { App.SendException(ex); } }