private void SaveMenuItem_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(_currentFileName)) { using (var fs = new FileStream(_currentFileName, FileMode.Create, FileAccess.Write)) { _cdl.Save(fs); } } }
void RunSave() { _recent.Add(_currentFilename); using (var fs = new FileStream(_currentFilename, FileMode.Create, FileAccess.Write)) { _cdl.Save(fs); } }