示例#1
0
        void UpdateListBoxFeatures()
        {
            PeopleListBoxColection.Items.Clear();
            foreach (string name in StaticAlbum.ShowPeopleNames())
            {
                PeopleListBoxColection.Items.Add(name);
            }

            LabelListBoxColection.Items.Clear();
            foreach (string name in StaticAlbum.ShowLabelNames())
            {
                LabelListBoxColection.Items.Add(name);
            }

            PictureLabelListBox.Items.Clear();
            foreach (string name in StaticPicture.ShowLabelListPic())
            {
                PictureLabelListBox.Items.Add(name);
            }

            PicturePeopleListBox.Items.Clear();
            foreach (string name in StaticPicture.ShowPersonListPic())
            {
                PicturePeopleListBox.Items.Add(name);
            }

            TagPeopleListBox.Items.Clear();
            foreach (string name in StaticAlbum.ShowPeopleNames())
            {
                TagPeopleListBox.Items.Add(name);
            }
        }