Exemplo n.º 1
0
 public BuildDetailViewModel(IBuildDetail bd)
 {
     BuildFinished      = bd.BuildFinished;
     BuildNumber        = bd.BuildNumber;
     DropLocation       = bd.DropLocation;
     DropLocationRoot   = bd.DropLocationRoot;
     LogLocation        = bd.LogLocation;
     Quality            = bd.Quality;
     RequestedBy        = bd.RequestedBy;
     RequestedFor       = bd.RequestedFor;
     CompilationStatus  = bd.CompilationStatus;
     FinishTime         = bd.FinishTime;
     Reason             = bd.Reason.ToString();
     Status             = bd.Status;
     this.originalValue = (BuildDetailViewModel)this.MemberwiseClone();
 }
Exemplo n.º 2
0
        private void GetBuildDetails()
        {
            if (builddetaillist == null)
            {
                builddetaillist = new ObservableCollection <BuildDetailViewModel>();
            }
            builddetaillist.Clear();
            IBuildDetailSpec buildDetailSpec = _buildserver.CreateBuildDetailSpec(this.SelectedProject.Name, this.SelectedBuildDefinition.Name);

            buildDetailSpec.MaxBuildsPerDefinition = 10;
            buildDetailSpec.QueryOrder             = BuildQueryOrder.FinishTimeDescending;

            IBuildDetail[] builds = getBuilds(buildDetailSpec);
            var            bdl    = new ObservableCollection <BuildDetailViewModel>();

            foreach (var item in builds)
            {
                var bdetailviewmodel = new BuildDetailViewModel(item);
                bdl.Add(bdetailviewmodel);
            }
            this.BuildDetailList = bdl;
        }