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); } } }