public void UpdateCatalog(CatalogItemViewModel viewModel)
        {
            InvokeIfRequired(() =>
            {
                this.treeView.BeginUpdate();

                var node = this.GetCatalogTreeNode(viewModel.Id);
                node.Text = viewModel.SupplierName;
                node.Tag = viewModel;

                this.treeView.EndUpdate();
            });
        }
 public void AddCatalog(CatalogItemViewModel viewModel)
 {
 }
        public void AddCatalog(CatalogItemViewModel viewModel)
        {
            InvokeIfRequired(() =>
            {
                var nodeCatalog = this.treeNodeCatalogs.Nodes.Add("catalog_" + viewModel.Id, viewModel.SupplierName,
                                                                  "book_open.png", "book_open.png");
                nodeCatalog.Tag = viewModel;
                nodeCatalog.ContextMenuStrip = this.contextMenuStripCatalog;

                this.eventBroker.RegisterTreeNodeSelectEventSource(nodeCatalog, new CatalogSelectedAction(viewModel.Id), Topics.UI);
                this.eventBroker.RegisterTreeNodeUnselectEventSource(nodeCatalog, new CatalogUnselectedAction(viewModel.Id), Topics.UI);
            });
        }
 public void UpdateCatalog(CatalogItemViewModel viewModel)
 {
 }