Exemplo n.º 1
0
        //Fill 'Categories' list-box.
        void FillCategories()
        {
            List <int> lst = new List <int>(_proxy.GetItemsAsync(EngServRef.ServerData.VideoCategory).Result);

            foreach (int item in lst)
            {
                lstCategory.Items.Add(new CheckBox {
                    VerticalAlignment = VerticalAlignment.Stretch, Tag = item, Content = _proxy.GetItemPropertyAsync(item, EngServRef.ServerData.VideoCategory, EngServRef.PropertyData.Name).Result, Style = TryFindResource("chNormal") as Style, HorizontalAlignment = HorizontalAlignment.Left
                });
            }
        }