private void LoLFinishExecution() { Logger.Instance.WriteLog("Detected LoL finished."); _launcher = null; if (videoRecordingController != null) { videoRecordingController.StopRecording(); } }
private void StartLoLLauncher(LoLLauncher launcher) { if (!LeagueOfLegendsAnalyzer.CheckLoLExeSelected()) { return; } _launcher = launcher; _launcher.Parent = this; _launcher.AnyEvent += LoLLauncherDone; _launcher.StartPlaying(); }
public void LoLLauncherDone(bool isSuccess, string reason) { if (!isSuccess) { if (reason.CompareTo("OldVersionReplay") == 0) { Nullable <Boolean> result = YesNoPopupWindow.AskQuestion(this, String.Format(Utilities.GetString("OldVersionReplay"))); if (result == true) { GoToOldVersionReplayGuide(); } } else { PopupWindow.ShowMessage(this, Utilities.GetString(reason) as String); } } _launcher = null; }