Exemplo n.º 1
0
 public BuildNodeViewModel(IBuildNode node)
     : base(node)
 {
     Node = node;
     MouseEnterCommand     = new DelegateCommand(OnMouseEnter);
     MouseLeaveCommand     = new DelegateCommand(OnMouseLeave);
     GoToBuildCommand      = new DelegateCommand(() => Url.GoTo(Node.Build.Links.BuildWeb), () => Node.Build.Links.BuildWeb != null);
     GoToBranchCommand     = new DelegateCommand(() => Url.GoTo(Node.Build.Links.BranchWeb), () => Node.Build.Links.BranchWeb != null);
     GoToDefinitionCommand = new DelegateCommand(() => Url.GoTo(Node.Build.Links.DefinitionWeb), () => Node.Build.Links.DefinitionWeb != null);
     BackendPropertiesChangedInternal();
 }
Exemplo n.º 2
0
 public BuildNodeViewModel(IBuildNode node) : base(node)
 {
     Node = node;
     MouseEnterCommand = new DelegateCommand(OnMouseEnter);
     MouseLeaveCommand = new DelegateCommand(OnMouseLeave);
 }
 private void RequestedForMe(IBuildNode build)
 {
     build.Build.RequestedFor.Returns(_me);
 }
Exemplo n.º 4
0
 public void RemoveNode(IBuildNode node)
 {
     FailedBuilds.Remove(node);
     CancelledBuilds.Remove(node);
     SucceededBuilds.Remove(node);
 }