protected void AddProject(TreeNode nodeDeal, ProjectItemViewModel viewModel)
        {
            InvokeIfRequired(() =>
            {
                var nodeProject = nodeDeal.Nodes.Add("project_" + viewModel.Id, viewModel.Name, "report.png",
                                                     "report.png");
                nodeProject.Tag = viewModel;
                nodeProject.ContextMenuStrip = this.contextMenuStripProject;

                this.eventBroker.RegisterTreeNodeSelectEventSource(nodeProject, new ProjectSelectedAction(viewModel.Id), Topics.UI);
                this.eventBroker.RegisterTreeNodeUnselectEventSource(nodeProject, new ProjectUnselectedAction(viewModel.Id), Topics.UI);
            });
        }
        public void UpdateProject(ProjectItemViewModel viewModel)
        {
            InvokeIfRequired(() =>
            {
                this.treeView.BeginUpdate();

                var node = this.GetProjectTreeNode(viewModel.Id);
                node.Text = viewModel.Name;
                node.Tag = viewModel;

                this.treeView.EndUpdate();
            });
        }
 public void AddProject(int dealId, ProjectItemViewModel viewModel)
 {
 }
        public void AddProject(int dealId, ProjectItemViewModel viewModel)
        {
            InvokeIfRequired(() =>
            {
                var node = this.GetDealTreeNode(dealId);

                this.AddProject(node, viewModel);
            });
        }
 public void UpdateProject(ProjectItemViewModel viewModel)
 {
 }