private void toolStripMenuItemFileOpen_Click(object sender, EventArgs e) { DialogResult res = this.openFileDialogLoad.ShowDialog(); if (res == DialogResult.OK) { LoadFile(this.openFileDialogLoad.FileName); } }