LESs/MainWindow.xaml.cs
/// <summary>
/// Called once LESs has been successfully patched into the client.
/// </summary>
Called once LESs has been successfully patched into the client.
Called once LESs has been successfully patched into the client .
private void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            switch (_errorLevel)
            {
                case ErrorLevel.NoError:
                    StatusLabel.Content = "Done patching!";
                    MessageBox.Show("LESs has been successfully patched into League of Legends!\n(In " + timer.ElapsedMilliseconds + "ms)");
                    break;
                case ErrorLevel.UnableToPatch:
                    SetStatusLabelAsync("[Error] Please check debug.log for more information.");
                    MessageBox.Show("LESs encountered errors during patching. No mods have been applied.");
                    break;
                case ErrorLevel.GoodJobYourInstallationIsProbablyCorruptedNow:
                    SetStatusLabelAsync("[Critical Error] Please check debug.log for more information.");
                    MessageBox.Show("LESs encountered errors during patching.\nIt is possible your client is corrupted.\nPlease repair before trying again.");
                    break;
            }
            PatchButton.IsEnabled = true;
            ReloadButton.IsEnabled = true;
        }
private void worker_RunWorkerCompleted ( object sender , RunWorkerCompletedEventArgs e ) { switch ( _errorLevel ) { case ErrorLevel . NoError : StatusLabel . Content = " " ; MessageBox . Show ( " \n " + timer . ElapsedMilliseconds + " " ) ; break ; case ErrorLevel . UnableToPatch : SetStatusLabelAsync ( " " ) ; MessageBox . Show ( " " ) ; break ; case ErrorLevel . GoodJobYourInstallationIsProbablyCorruptedNow : SetStatusLabelAsync ( " " ) ; MessageBox . Show ( " \n \n " ) ; break ; } PatchButton . IsEnabled = true ; ReloadButton . IsEnabled = true ; }
Called once LESs has been successfully patched into the client.
Called once LESs has been successfully patched into the client .
sender
object
e
RunWorkerCompletedEventArgs