示例#1
0
 public EnterNameForm(PlaylistForm form)
 {
     InitializeComponent();
     playlistForm              = form;
     this.KeyDown             += EnterNameForm_KeyDown;
     this.NameTextBox.KeyDown += NameTextBox_KeyDown;
     this.NameTextBox.Focus();
 }
示例#2
0
 private void CreatePlaylistForm()
 {
     if (PlaylistForm == null)
     {
         PlaylistForm = new PlaylistForm(this);
         PlaylistForm.Show();
     }
     else
     {
         PlaylistForm.Close();
         PlaylistForm.Dispose();
         PlaylistForm = null;
     }
 }