internal BuildDefinitionViewModel(IBuildDefinition bd)
 {
     ProcessTemplate     = bd.Process.ServerPath;
     BuildController     = bd.BuildController;
     BuildServer         = bd.BuildServer;
     DefaultDropLocation = bd.DefaultDropLocation;
     Description         = bd.Description;
     Enabled             = bd.Enabled;
     FullPath            = bd.FullPath;
     Id   = bd.Id;
     Name = bd.Name;
     ProcessParameters  = bd.ProcessParameters;
     BuildDefinition    = bd;
     this.originalvalue = (BuildDefinitionViewModel)this.MemberwiseClone();
 }
Exemplo n.º 2
0
        internal void GetBuildDefinitions()
        {
            if (builddefinitionlist == null)
            {
                builddefinitionlist = new ObservableCollection <BuildDefinitionViewModel>();
            }
            else
            {
                builddefinitionlist.Clear();
            }
            IBuildDefinition[] builddefinitions = _buildserver.QueryBuildDefinitions(this.SelectedProject.Name);

            var bd = new ObservableCollection <BuildDefinitionViewModel>();

            foreach (IBuildDefinition item in builddefinitions)
            {
                BuildDefinitionViewModel bdvm = new BuildDefinitionViewModel(item);
                bd.Add(bdvm);
            }
            this.BuildDefinitionList = bd;
        }