Example #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            TVShow      tv = (TVShow)lbTVshows.SelectedItem;
            AdminUpdate au = new AdminUpdate(tv);

            au.ShowDialog();
        }
 public AddActorOrCreator(AdminAdd ah, AdminUpdate au, string actorOrCreator)
 {
     InitializeComponent();
     txtFirst.Text = string.Empty;
     txtLast.Text  = string.Empty;
     if (ah != null)
     {
         parent = ah;
     }
     else
     {
         parent1 = au;
     }
     type = actorOrCreator;
     listBox1.Items.Clear();
     if (type == "actor")
     {
         listBox1.Items.AddRange(Actors().ToArray());
         label3.Visible    = true;
         btnAwards.Visible = true;
         awards            = new List <Award>();
     }
     else
     {
         listBox1.Items.AddRange(Creators().ToArray());
         label3.Visible    = false;
         btnAwards.Visible = false;
     }
 }