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