Exemple #1
0
 public BuildDefinitionSetting(MyBuildDefinition buildDefinition, string buildServer) : this()
 {
     Active          = false;
     Id              = buildDefinition.Id;
     Name            = buildDefinition.Name;
     AffectsTrayIcon = true;
     BuildServer     = buildServer;
 }
 public BuildDefinitionSetting FindAddBuildDefinition(MyBuildDefinition buildDefinition, string buildServer)
 {
     BuildDefinitionSetting buildDefinitionSetting = BuildDefinitionSettings.FirstOrDefault(bd => bd.Id == buildDefinition.Id);
     if (buildDefinitionSetting != null) return buildDefinitionSetting;
     buildDefinitionSetting = new BuildDefinitionSetting(buildDefinition, buildServer);
     BuildDefinitionSettings.Add(buildDefinitionSetting);
     return buildDefinitionSetting;
 }
        public BuildDefinitionSetting(MyBuildDefinition buildDefinition, string buildServer) : this()
        {
			Active = false;
			Id = buildDefinition.Id;
			Name = buildDefinition.Name;
            AffectsTrayIcon = true;
            BuildServer = buildServer;
        }
Exemple #4
0
        public BuildDefinitionSetting FindAddBuildDefinition(MyBuildDefinition buildDefinition, string buildServer)
        {
            BuildDefinitionSetting buildDefinitionSetting = BuildDefinitionSettings.FirstOrDefault(bd => bd.Id == buildDefinition.Id);

            if (buildDefinitionSetting != null)
            {
                return(buildDefinitionSetting);
            }
            buildDefinitionSetting = new BuildDefinitionSetting(buildDefinition, buildServer);
            BuildDefinitionSettings.Add(buildDefinitionSetting);
            return(buildDefinitionSetting);
        }