Esempio n. 1
0
 private void LoLFinishExecution()
 {
     Logger.Instance.WriteLog("Detected LoL finished.");
     _launcher = null;
     if (videoRecordingController != null)
     {
         videoRecordingController.StopRecording();
     }
 }
Esempio n. 2
0
 private void StartLoLLauncher(LoLLauncher launcher)
 {
     if (!LeagueOfLegendsAnalyzer.CheckLoLExeSelected())
     {
         return;
     }
     _launcher           = launcher;
     _launcher.Parent    = this;
     _launcher.AnyEvent += LoLLauncherDone;
     _launcher.StartPlaying();
 }
Esempio n. 3
0
 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;
 }