/// <summary> /// method : Save /// </summary> private void Save() { if (dlgSave.FileName == String.Empty) { dlgSave.FileName = "Calculation1.cal"; if (dlgSave.ShowDialog() == DialogResult.OK) { calculation.SaveToFile(dlgSave.FileName); } } else { calculation.SaveToFile(dlgSave.FileName); } changed = false; }