예제 #1
0
 private void btnEditVideo_Click(object sender, EventArgs e)
 {
     //TODO: prevent this redundance of code
     VideoRegistrationForm vrf = new VideoRegistrationForm(video);
     this.AddOwnedForm(vrf);
     vrf.ShowDialog();
     video = vrf.getVideo();
     if (video != null)
     {
     //                MessageBox.Show("edição de vídeo");
         fillCbbVideoName();
         fillVideoInfo(video);
     }
     vrf.Dispose();
 }
예제 #2
0
 private void btnRegisterVideo_Click(object sender, EventArgs e)
 {
     VideoRegistrationForm vrf = new VideoRegistrationForm();
     this.AddOwnedForm(vrf);
     vrf.ShowDialog();
     video = vrf.getVideo();
     if (video != null)
     {
         btnEditVideo.Enabled = true;
     //                MessageBox.Show("registro do vídeo");
         fillCbbVideoName();
         fillVideoInfo(video);
     }
     vrf.Dispose();
 }