Beispiel #1
0
 private void RunUplayVersion_Click(object sender, RoutedEventArgs e)
 {
     if (R6SFile.CheckSteamVersion())
     {
         R6SFile.RecoveryUplayFiles();
         SetR6SState();
     }
     System.Diagnostics.Process.Start("uplay://launch/635/0");
 }
Beispiel #2
0
 private void RunSteamVersion_Click(object sender, RoutedEventArgs e)
 {
     if (!R6SFile.CheckSteamVersion())
     {
         R6SFile.RecoverySteamFiles();
         SetR6SState();
     }
     System.Diagnostics.Process.Start("steam://run/359550");
 }
Beispiel #3
0
 private void SetR6SState()
 {
     if (R6SFile.CheckSteamVersion())
     {
         R6SState.Content = Properties.Resources.CurrentVersionSteam;
     }
     else
     {
         R6SState.Content = Properties.Resources.CurrentVersionUplay;
     }
 }
Beispiel #4
0
 private void SaveUplayFile_Click(object sender, RoutedEventArgs e)
 {
     if (!R6SFile.CheckSteamVersion())
     {
         R6SFile.BackupUplayFiles();
         MessageBox.Show(Properties.Resources.BackupSuccessfully);
     }
     else
     {
         MessageBox.Show("请确认目前的彩虹六号为Uplay版");
     }
     SetR6SSaveState();
 }
Beispiel #5
0
 private void AdaptR6SButton_Click(object sender, RoutedEventArgs e)
 {
     if (R6SFile.CheckSteamBackup() && R6SFile.CheckUplayBackup())
     {
         if (R6SFile.CheckSteamVersion())
         {
             R6SFile.RecoveryUplayFiles();
             MessageBox.Show(Properties.Resources.SwitchSuccess);
         }
         else
         {
             R6SFile.RecoverySteamFiles();
             MessageBox.Show(Properties.Resources.SwitchSuccess);
         }
         SetR6SState();
     }
     else
     {
         MessageBox.Show(Properties.Resources.PleaseBackupFilesFirst);
     }
 }