Esempio n. 1
0
        private void SetR6SSaveState()
        {
            if (Config.Configuration.R6SPath == String.Empty)
            {
                SaveSteamFile.IsEnabled = false; SaveUplayFile.IsEnabled = false;
            }
            else
            {
                SaveSteamFile.IsEnabled = true; SaveUplayFile.IsEnabled = true;
            }
            var sb = new StringBuilder();

            sb.Append(Properties.Resources.SteamBackup);
            if (R6SFile.CheckSteamBackup())
            {
                sb.Append(Properties.Resources.Exsist);
                RunSteamVersion.IsEnabled = true;
            }
            else
            {
                sb.Append(Properties.Resources.NoExsist);
            }
            sb.Append("\n");
            sb.Append(Properties.Resources.UplayBackup);
            if (R6SFile.CheckUplayBackup())
            {
                sb.Append(Properties.Resources.Exsist);
                RunUplayVersion.IsEnabled = true;
            }
            else
            {
                sb.Append(Properties.Resources.NoExsist);
            }
            R6SSaveState.Content = sb.ToString();
        }
Esempio n. 2
0
 private void RunUplayVersion_Click(object sender, RoutedEventArgs e)
 {
     if (R6SFile.CheckSteamVersion())
     {
         R6SFile.RecoveryUplayFiles();
         SetR6SState();
     }
     System.Diagnostics.Process.Start("uplay://launch/635/0");
 }
Esempio n. 3
0
 private void RunSteamVersion_Click(object sender, RoutedEventArgs e)
 {
     if (!R6SFile.CheckSteamVersion())
     {
         R6SFile.RecoverySteamFiles();
         SetR6SState();
     }
     System.Diagnostics.Process.Start("steam://run/359550");
 }
Esempio n. 4
0
 private void SetR6SState()
 {
     if (R6SFile.CheckSteamVersion())
     {
         R6SState.Content = Properties.Resources.CurrentVersionSteam;
     }
     else
     {
         R6SState.Content = Properties.Resources.CurrentVersionUplay;
     }
 }
Esempio n. 5
0
 private void SaveUplayFile_Click(object sender, RoutedEventArgs e)
 {
     if (!R6SFile.CheckSteamVersion())
     {
         R6SFile.BackupUplayFiles();
         MessageBox.Show(Properties.Resources.BackupSuccessfully);
     }
     else
     {
         MessageBox.Show("请确认目前的彩虹六号为Uplay版");
     }
     SetR6SSaveState();
 }
Esempio n. 6
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);
     }
 }