private void SaveAndConfirm_Click(object sender, RoutedEventArgs e) { foreach (PathEditor modifiedPath in modifiedPaths) { SavePatFile.WritePatFile(modifiedPath.CurrentTrainPath); } this.Close(); }
/// <summary> /// Save the path to file, converting the internal representation to .pat file format /// </summary> public void SavePath() { SavePatFile.WritePatFile(CurrentTrainPath); }