private void cmdOpenFile_Click(object sender, EventArgs e) { PlayerForm playerForm = new PlayerForm(); playerForm.LoadFile(); playerForm.Show(); this.Close(); }
private void InitialForm_DragDrop(object sender, DragEventArgs e) { string file = ((string[])e.Data.GetData(DataFormats.FileDrop))[0]; PlayerForm playerForm = new PlayerForm(); playerForm.LoadProgramFile(file); playerForm.Show(); this.Close(); }