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(); }
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(); }