private void OnFormClosing(object sender, FormClosingEventArgs e) { GraphSaver.Save(graphControl1.GraphBundle, PathToXml, SaveOptions.AddComments); Settings.Default.LastLocation = Location; Settings.Default.LastSize = Size; Settings.Default.SplitterPosition = splitContainer1.SplitterDistance; Settings.Default.Save(); }
private void SaveCurrentGraph() { if (FileName == "") { FileName = GetFileNameFromDialog(); } GraphSaver.SaveToFile(Graph, filename); ChangesSaved = true; }