Beispiel #1
0
 public void SetData(List <BrowserData> datas)
 {
     this.ItemsPanel.Children.Clear();
     foreach (BrowserData data in datas)
     {
         DashboradBlockItem item = new DashboradBlockItem(data, this.FunctionalityCode);
         item.Block = this;
         this.ItemsPanel.Children.Add(item);
     }
 }
Beispiel #2
0
        public List <int> GetSelectedIds()
        {
            List <int> ids = new List <int>(0);

            foreach (UIElement item in this.ItemsPanel.Children)
            {
                if (!(item is DashboradBlockItem))
                {
                    continue;
                }
                DashboradBlockItem blockItem = (DashboradBlockItem)item;
                if (blockItem.CheckBox.IsChecked.Value)
                {
                    ids.Add(blockItem.oid);
                }
            }
            return(ids);
        }