Exemplo n.º 1
0
        private async void NodePicker_Load(object sender, EventArgs e)
        {
            linkList = await type.GetAllLinks();

            if (excludeChildId != null)
            {
                var node = await DbLinkCollection.FindOneById(excludeChildId);

                node?.CildrenRank.ForEach(child => linkList.Remove(linkList.FirstOrDefault(x => x._id == child.Key)));
            }
            InitializeData(linkList);
        }
 private async Task FillForwardActionLinks(ComboBox cbx, LinkType linkType)
 {
     ((BindingSource)cbx.DataSource).DataSource = await linkType.GetAllLinks();
 }