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(); }
private void RunUplayVersion_Click(object sender, RoutedEventArgs e) { if (R6SFile.CheckSteamVersion()) { R6SFile.RecoveryUplayFiles(); SetR6SState(); } System.Diagnostics.Process.Start("uplay://launch/635/0"); }
private void RunSteamVersion_Click(object sender, RoutedEventArgs e) { if (!R6SFile.CheckSteamVersion()) { R6SFile.RecoverySteamFiles(); SetR6SState(); } System.Diagnostics.Process.Start("steam://run/359550"); }
private void SetR6SState() { if (R6SFile.CheckSteamVersion()) { R6SState.Content = Properties.Resources.CurrentVersionSteam; } else { R6SState.Content = Properties.Resources.CurrentVersionUplay; } }
private void SaveUplayFile_Click(object sender, RoutedEventArgs e) { if (!R6SFile.CheckSteamVersion()) { R6SFile.BackupUplayFiles(); MessageBox.Show(Properties.Resources.BackupSuccessfully); } else { MessageBox.Show("请确认目前的彩虹六号为Uplay版"); } SetR6SSaveState(); }
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); } }