Example #1
0
 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);
         }
     }
 }
Example #2
0
 void RunSave()
 {
     _recent.Add(_currentFilename);
     using (var fs = new FileStream(_currentFilename, FileMode.Create, FileAccess.Write))
     {
         _cdl.Save(fs);
     }
 }