private void SelectWatch() { this.mAction = ReplayDownloadActions.Watch; if (Program.Settings.SupcomPrefs.Replays.RememberDownloadAction) { Program.Settings.SupcomPrefs.Replays.DefaultDownloadAction = this.Action; } base.DialogResult = DialogResult.OK; }
private void SelectSaveAs() { SaveFileDialog dialog = new SaveFileDialog(); dialog.AddExtension = true; if (GameInformation.SelectedGame.ExeName == "ForgedAlliance.exe") { dialog.DefaultExt = ".SCFAReplay"; dialog.Filter = Loc.Get("<LOC>Supreme Commander Forged Alliance|*.SCFAReplay"); } else { dialog.DefaultExt = ".SupremeCommanderReplay"; dialog.Filter = Loc.Get("<LOC>Supreme Commander Replay|*.SupremeCommanderReplay"); } dialog.FileName = this.DownloadFile; if (dialog.ShowDialog() == DialogResult.OK) { this.mSavePath = dialog.FileName; this.mAction = ReplayDownloadActions.SaveAs; if (Program.Settings.SupcomPrefs.Replays.RememberDownloadAction) { Program.Settings.SupcomPrefs.Replays.DefaultDownloadAction = this.Action; } Program.Settings.SupcomPrefs.Replays.ReplaysDirectory = Path.GetDirectoryName(this.SavePath); base.DialogResult = DialogResult.OK; } }