Пример #1
0
        private void cmdOpenFile_Click(object sender, EventArgs e)
        {
            PlayerForm playerForm = new PlayerForm();

            playerForm.LoadFile();
            playerForm.Show();
            this.Close();
        }
Пример #2
0
        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();
        }