private void LoadFromFile_Click(object sender, EventArgs e)
 {
     if (OpenSaveFile.ShowDialog() != DialogResult.OK)
     {
     }
     else
     {
         ActiveFile = OpenSaveFile.FileName;
         LoadFile(ActiveFile);
         this.Show();
     }
 }
 private void MainForm_Shown(object sender, EventArgs e)
 {
     if (OpenSaveFile.ShowDialog() != DialogResult.OK)
     {
         Application.Exit();
     }
     else
     {
         ActiveFile = OpenSaveFile.FileName;
         LoadFile(ActiveFile);
         this.Show();
     }
 }