예제 #1
0
 private void MenuItemFileOpen_Click(object sender, EventArgs e)
 {
     using (OpenFileDialog openFileDialog = new OpenFileDialog())
     {
         openFileDialog.InitialDirectory = Directory.GetCurrentDirectory();
         if (openFileDialog.ShowDialog() == DialogResult.OK)
         {
             Tube.LoadFile(openFileDialog.FileName);
             SetCaption(Tube.FileName);
         }
     }
 }