void OnUpdateStateChanged(ProjectTree.ProjectTreeNode.UpdateState newState) { if (newState == ProjectTreeNode.UpdateState.Normal) { UpdateMenu.Visible = false; FittinWizardMenu.Visible = true; } else if (newState == ProjectTreeNode.UpdateState.NotUpdated) { UpdateMenu.Visible = true; FittinWizardMenu.Visible = false; } }
void AddTextMark(ProjectTree.ProjectTreeNode.ProjectTreeState newState1, ProjectTree.ProjectTreeNode.UpdateState newState2) { Text = Impl.Name; if (newState1 == ProjectTreeNode.ProjectTreeState.Changed) { Text = Text + " *"; } if (newState2 == ProjectTreeNode.UpdateState.NotUpdated) { Text = "! " + Text; } if (OnMyTreeNodeTextChanged != null) { OnMyTreeNodeTextChanged(Text); } }
void OnUpdateStateChanged(ProjectTree.ProjectTreeNode.UpdateState newState) { AddTextMark(Impl.State, newState); if (newState == ProjectTreeNode.UpdateState.Normal && UpdateMenuShow) { if (ContextMenuStrip.Items.Contains(UpdateMenu)) { ContextMenuStrip.Items.Remove(UpdateMenu); } } else if (newState == ProjectTreeNode.UpdateState.NotUpdated && UpdateMenuShow) { if (!ContextMenuStrip.Items.Contains(UpdateMenu)) { ContextMenuStrip.Items.Add(UpdateMenu); } } }