private void SaveAsTasMenuItem_Click(object sender, EventArgs e) { var filename = CurrentTasMovie.Filename; if (string.IsNullOrWhiteSpace(filename) || filename == DefaultTasProjName()) { filename = SuggestedTasProjName(); } var file = ToolHelpers.GetTasProjSaveFileFromUser(filename); if (file != null) { CurrentTasMovie.Filename = file.FullName; if (_exiting) { CurrentTasMovie.Save(); } else { _saveBackgroundWorker.RunWorkerAsync(); } Settings.RecentTas.Add(CurrentTasMovie.Filename); SetTextProperty(); } }
private void SaveAsTasMenuItem_Click(object sender, EventArgs e) { var file = ToolHelpers.GetTasProjSaveFileFromUser(_tas.Filename); if (file != null) { _tas.Filename = file.FullName; _tas.Save(); Global.Config.RecentTas.Add(_tas.Filename); MessageStatusLabel.Text = Path.GetFileName(_tas.Filename) + " saved."; } }