Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AdminAdd ah = new AdminAdd();

            ah.ShowDialog();
            lbTVshows.Items.Clear();
            lbTVshows.Items.AddRange(DataProvider.getTVShows().ToArray());
        }