示例#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();
        }
示例#2
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);
     }
 }