コード例 #1
0
 /// <summary>
 /// Opens the open dialog box and calls the Load function in SaveAndLoad class
 /// </summary>
 private new void Load()
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         SaveAndLoad.Load(openFileDialog1.FileName);
     }
 }
コード例 #2
0
 /// <summary>
 /// Opens the save dialog box and calls the Save function in SaveAndLoad class
 /// </summary>
 private void Save()
 {
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         SaveAndLoad.Save(saveFileDialog1.FileName);
     }
 }