Beispiel #1
0
 private void frm_Star_Load(object sender, EventArgs e)
 {
     person        = person.Desc(person);
     txt_born.Text = person.Born;
     txt_desc.Text = person.Description;
     lbl_name.Text = person.Name.Contains('(') ? person.Name.Substring(0, person.Name.IndexOf('(')) : person.Name;
     person        = person.Poster(person);
     pct_poster.Load(person.ProfileImage);
     ImagesList(person.Photos(person));
     KnownList(person.GetKnownFor(person));
     person = person.Filmography(person, filmography);
     for (int i = 0; i < person.Filmographies.Count; i++)
     {
         if (person.Roles[i] == Role.Director)
         {
             lst_director.Items.Add(person.Filmographies[i].Name);
         }
         if (person.Roles[i] == Role.Writer)
         {
             lst_writer.Items.Add(person.Filmographies[i].Name);
         }
         if (person.Roles[i] == Role.Actor)
         {
             lst_actor.Items.Add(person.Filmographies[i].Name);
         }
     }
 }
Beispiel #2
0
        private void frm_Star_Load(object sender, EventArgs e)
        {
            person = DAL.CastControl(person);
            if (person.Born == "" || person.Description == "")
            {
                person        = person.Desc(person);
                txt_born.Text = person.Born;
                txt_desc.Text = person.Description;
                lbl_name.Text = person.Name.Contains('(') ? person.Name.Substring(0, person.Name.IndexOf('(')) : person.Name;
                person        = person.Poster(person);
                pct_poster.Load(person.ProfileImage);
                ImagesList(person.Photos(person));
                KnownList(person.GetKnownFor(person));
                person = person.Filmography(person);

                DAL.CastUpdate(person);
            }
            else
            {
                txt_born.Text = person.Born;
                txt_desc.Text = person.Description;
                lbl_name.Text = person.Name.Contains('(') ? person.Name.Substring(0, person.Name.IndexOf('(')) : person.Name;
                pct_poster.Load(person.ProfileImage);
                ImagesList(person.Images);
                KnownList(person.KnownFor);
                person.Filmographies.Clear();
                person = person.Filmography(person);
            }
            List <string> lstrole = new List <string>();

            for (int i = 0; i < person.Filmographies.Count; i++)
            {
                if (lstrole.Contains(person.FilmographiesRoles[i]) == false)
                {
                    lstrole.Add(person.FilmographiesRoles[i]);
                }
            }

            foreach (string item in lstrole)
            {
                TreeNode roles = new TreeNode(item);
                treeview_roles.Nodes.Add(roles);
            }
        }