当前位置: 首页>>代码示例>>C#>>正文


C# ProjectType类代码示例

本文整理汇总了C#中ProjectType的典型用法代码示例。如果您正苦于以下问题:C# ProjectType类的具体用法?C# ProjectType怎么用?C# ProjectType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ProjectType类属于命名空间,在下文中一共展示了ProjectType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Project

        public Project(
            int projectId,
            string name,
            ProjectType[] projectType,
            string info,
            ProjectStatus projectStatus,
            Common.Image landingImage,
            Uri versionControlSystemUri,
            Uri projectManagementSystemUri,
            HashSet<Issue> issues,
            HashSet<ProjectMembership> projectMemberships,
            HashSet<Common.Image> screenshots)
        {
            Require.Positive(projectId, nameof(projectId));
            Require.NotEmpty(name, nameof(name));
            Require.NotNull(info, nameof(info));
            Require.NotNull(versionControlSystemUri, nameof(versionControlSystemUri));
            Require.NotNull(projectManagementSystemUri, nameof(projectManagementSystemUri));

            ProjectId = projectId;
            Name = name;
            ProjectType = projectType;
            Info = info;
            ProjectStatus = projectStatus;
            LandingImage = landingImage;
            VersionControlSystemUri = versionControlSystemUri;
            ProjectManagementSystemUri = projectManagementSystemUri;
            Issues = issues;
            ProjectMemberships = projectMemberships;
            Screenshots = screenshots;
        }
开发者ID:LeagueOfDevelopers,项目名称:LodCore,代码行数:31,代码来源:Project.cs

示例2: OvlModelSearchResult

 public OvlModelSearchResult(ProjectType type, int modelsFound, int totalModels, List<string> remainingOvlModels)
 {
     _type = type;
     _modelsFound = modelsFound;
     _totalModels = totalModels;
     _remainingOvlModels = remainingOvlModels;
 }
开发者ID:noaharoth,项目名称:RCT3PathCreator2,代码行数:7,代码来源:OvlModelSearcher.cs

示例3: Order

        public Order(
            string header,
            string customerName, 
            DateTime createdOnDateTime,
            DateTime deadLine, 
            MailAddress email, 
            string description,
            ISet<Uri> attachments, 
            ProjectType projectType)
        {
            Require.NotEmpty(header, nameof(header));
            Require.NotEmpty(customerName, nameof(customerName));
            Require.NotNull(email, nameof(email));
            Require.NotNull(description, nameof(description));
            Require.NotNull(attachments, nameof(attachments));

            Header = header;
            CustomerName = customerName;
            CreatedOnDateTime = createdOnDateTime;
            DeadLine = deadLine;
            Email = email;
            Description = description;
            Attachments = attachments;
            ProjectType = projectType;
        }
开发者ID:LeagueOfDevelopers,项目名称:LodCore,代码行数:25,代码来源:Order.cs

示例4: CreateProjectFile

        public static string CreateProjectFile(BootstrappedProject project, ProjectType projectType, IEnumerable<ProjectReferenceData> references = null, bool isSelfHost = false)
        {
            var includes = CrawlFoldersForIncludes(project.ProjectRoot);
            var compileIncludesText = string.Join("", includes.Compile.ToArray());

            var contentIncludesText = "";
            var referencesText = "";

            var selfHostReferences = isSelfHost ? Environment.NewLine + @"    <Reference Include=""System.ServiceProcess"" />" : "";
            var queueConfigurationReferences = isSelfHost ? Environment.NewLine + @"    <Reference Include=""System.Configuration"" />" : "";

            if (references != null)
            {
                var projectReferences = references.Select(CreateProjectReference);
                referencesText = Environment.NewLine + "<ItemGroup>" + string.Join("", projectReferences.ToArray()) + Environment.NewLine + "</ItemGroup>";
            }

            if (includes.Content.Any())
            {
                contentIncludesText = Environment.NewLine + "<ItemGroup>" + string.Join("", includes.Content.ToArray()) + Environment.NewLine + "</ItemGroup>";
            }

            var projectFileContent =
                ClassLibraryProject
                    .Replace("{{projectGuid}}", project.ProjectGuid.ToString())
                    .Replace("{{outputType}}", projectType.ToString())
                    .Replace("{{assemblyName}}", project.ProjectName)
                    .Replace("{{compileIncludes}}", compileIncludesText)
                    .Replace("{{contentIncludes}}", contentIncludesText)
                    .Replace("{{queueConfigurationReferences}}", queueConfigurationReferences)
                    .Replace("{{selfHostReferences}}", selfHostReferences)
                    .Replace("{{referenceIncludes}}", referencesText);

            return projectFileContent;
        }
开发者ID:ParticularLabs,项目名称:NServiceBus.Launchpad,代码行数:35,代码来源:ProjectFileTemplator.cs

示例5: generate

        internal static void generate(string filename, string version, string asmName, string ns, ProjectType type)
        {
            Project p = new Project();
            string typeDesc = null;

            p.Xml.DefaultTargets = "Build";
            createItemGroup(p, "ProjectConfigurations");
            createGlobals(ns, type, p, "Globals");
            p.Xml.AddImport(@"$(VCTargetsPath)\Microsoft.Cpp.Default.props");

            switch (type) {
                case ProjectType.ConsoleApp: typeDesc = "Application"; break;
                case ProjectType.XamlApp: typeDesc = "Application"; break;
                case ProjectType.ClassLibrary: typeDesc = "DynamicLibrary"; break;
                default:
                    throw new InvalidOperationException("unhandled projectType: " + type);
            }
            createCfgProp(p.Xml, typeDesc, true);
            createCfgProp(p.Xml, typeDesc, false);
            p.Xml.AddImport(@"$(VCTargetsPath)\Microsoft.Cpp.props");
            addPropertySheetImports(p.Xml);
            addPropertyGroup(p.Xml, makeCfgCondition(DEBUG, PLATFORM), new Blah2(b2));
            addPropertyGroup(p.Xml, makeCfgCondition(RELEASE, PLATFORM), new Blah2(b2));
            addItemDefs(p.Xml);

            const string C_TARGET_RULES = @"$(VCTargetsPath)\Microsoft.Cpp.targets";
            var v99 = p.Xml.CreateImportElement(C_TARGET_RULES);
            p.Xml.AppendChild(v99);
            p.Save(filename);
        }
开发者ID:surak8,项目名称:ProjectGen,代码行数:30,代码来源:CProjectGenerator.cs

示例6: ProjectInfo

 public ProjectInfo( ProjectType pt )
 {
     _po = new Options();
     _strName = null;
     _rc = new RunCollection( this );
     _pt = pt;
 }
开发者ID:ilya11211,项目名称:nprof,代码行数:7,代码来源:ProjectInfo.cs

示例7: AdminProject

        public AdminProject(
            int projectId,
            string name,
            ProjectType[] projectType,
            string info,
            ProjectStatus projectStatus,
            Common.Image landingImage,
            AccessLevel accessLevel,
            Uri versionControlSystemUri,
            Uri projectManagementSystemUri,
            HashSet<Issue> issues,
            HashSet<ProjectMembership> projectDevelopers,
            HashSet<Common.Image> screenshots)
        {
            Require.Positive(projectId, nameof(projectId));
            Require.NotEmpty(name, nameof(name));
            Require.NotNull(info, nameof(info));
            Require.NotNull(versionControlSystemUri, nameof(versionControlSystemUri));
            Require.NotNull(projectManagementSystemUri, nameof(projectManagementSystemUri));

            ProjectId = projectId;
            Name = name;
            ProjectType = projectType ?? new[] {Common.ProjectType.Other};
            AccessLevel = accessLevel;
            Info = info;
            ProjectStatus = projectStatus;
            LandingImage = landingImage;
            VersionControlSystemUri = versionControlSystemUri;
            ProjectManagementSystemUri = projectManagementSystemUri;
            Issues = issues ?? new HashSet<Issue>();
            ProjectMemberships = projectDevelopers ?? new HashSet<ProjectMembership>();
            Screenshots = screenshots ?? new HashSet<Common.Image>();
        }
开发者ID:LeagueOfDevelopers,项目名称:LodCore,代码行数:33,代码来源:AdminProject.cs

示例8: MainWindow

        public MainWindow(IGUIToolkit guiToolkit)
            : base("LongoMatch")
        {
            this.Build();

            this.guiToolKit = guiToolkit;

            projectType = ProjectType.None;

            timeline = new TimeLineWidget();
            downbox.PackStart(timeline, true, true, 0);

            guTimeline = new GameUnitsTimelineWidget ();
            downbox.PackStart(guTimeline, true, true, 0);

            player.SetLogo(System.IO.Path.Combine(Config.ImagesDir(),"background.png"));
            player.LogoMode = true;
            player.Tick += OnTick;
            player.Detach += (sender, e) => DetachPlayer(true);

            capturer.Visible = false;
            capturer.Logo = System.IO.Path.Combine(Config.ImagesDir(),"background.png");
            capturer.CaptureFinished += (sender, e) => {CloseCaptureProject();};

            buttonswidget.Mode = TagMode.Predifined;
            localPlayersList.Team = Team.LOCAL;
            visitorPlayersList.Team = Team.VISITOR;

            ConnectSignals();
            ConnectMenuSignals();

            if (!Config.useGameUnits)
                GameUnitsViewAction.Visible = false;
        }
开发者ID:dineshkummarc,项目名称:longomatch,代码行数:34,代码来源:MainWindow.cs

示例9: GetAssemblyInfoText

    public string GetAssemblyInfoText(VersionVariables vars, string rootNamespace, ProjectType projectType)
    {
        string assemblyInfoFormat;
        if (projectType == ProjectType.CSharp)
        {
            assemblyInfoFormat = csharpAssemblyInfoFormat;
        }
        else if (projectType == ProjectType.FSharp)
        {
            assemblyInfoFormat = fsharpAssemblyInfoFormat;
        }
        else
        {
            throw new ArgumentException("ProjectType");
        }

        var v = vars.ToList();

        var assemblyInfo = string.Format(
        assemblyInfoFormat,
        vars.AssemblySemVer,
        vars.MajorMinorPatch + ".0",
        vars.InformationalVersion,
        GenerateStaticVariableMembers(v, projectType),
        rootNamespace);

        return assemblyInfo;
    }
开发者ID:alexhardwicke,项目名称:GitVersion,代码行数:28,代码来源:AssemblyInfoBuilder.cs

示例10: ProjectUploadingEventArg

 public ProjectUploadingEventArg(DomainActionData actionData, string projectId, string projectName, ProjectType projectType, ProjectSubtype projectSubtype)
     : base(actionData)
 {
     ProjectId = projectId;
     ProjectName = projectName;
     ProjectType = projectType;
     ProjectSubtype = projectSubtype;
 }
开发者ID:GusLab,项目名称:video-portal,代码行数:8,代码来源:ProjectUploadingEventArg.cs

示例11: Project

 public Project(ProjectType type, string name, Guid id, ProjectUser founder)
 {
     Type = type;
     Name = name;
     DateCreated = System.DateTime.Now;
     Id = id;
     Users = new Dictionary<Guid, ProjectUser>();
     //Users[founder.Id] = founder;
 }
开发者ID:FloodProject,项目名称:flood,代码行数:9,代码来源:Project.cs

示例12: ModisSourceProduct

 public ModisSourceProduct(string name, string baseUrl, SatelliteType sateType, 
                             ProductType prodType, ProjectType projType, int days)
 {
     productName = name;
     baseFtpUrl = baseUrl;
     satellite = sateType;
     productType = prodType;
     projectType = projType;
     observeInterval = days;
 }
开发者ID:bunkermachine,项目名称:nimbus,代码行数:10,代码来源:SourceInfo.cs

示例13: AddProjectUploading

        public Task AddProjectUploading(DomainActionData actionData, string projectId, string projectName, ProjectType projectType, ProjectSubtype projectSubtype)
        {
            string eventId = GuidWraper.Generate();
            DateTime curDateTime = DateTimeWrapper.CurrentDateTime();

            StatProjectUploadingV2Entity projectUploadingEntity = StatEntityFactory.CreateProjectUploadingEntity(eventId, curDateTime, actionData, projectId, projectName, projectType, projectSubtype);
            ITableRepository<StatProjectUploadingV2Entity> projectUploadingRepository = RepositoryFactory.Create<StatProjectUploadingV2Entity>();

            return projectUploadingRepository.AddAsync(projectUploadingEntity);
        }
开发者ID:GusLab,项目名称:video-portal,代码行数:10,代码来源:StatProjectUploadingService.cs

示例14: GetCostEntry

        /// <summary>
        /// Gets the actual or target cost entry for the given project type and the month.
        /// </summary>
        /// <param name="projectType">Type of project.</param>
        /// <param name="costType">The actual or target cost indicator.</param>
        /// <param name="month">Month for the calculation.</param>
        /// <returns>The cost value.</returns>
        public long GetCostEntry(ProjectType projectType, CostType costType, int month)
        {
            var key = ProjectCostEntry.ToString(projectType, costType, month);
            if (this.costEntries.ContainsKey(key))
            {
                return this.costEntries[key].Cost;
            }

            return 0;
        }
开发者ID:deepak2007in,项目名称:Sharepoint,代码行数:17,代码来源:ProjectCost.cs

示例15: Create

        public ActionResult Create(ProjectType projecttype)
        {
            if (ModelState.IsValid)
            {
                db.ProjectTypes.Add(projecttype);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(projecttype);
        }
开发者ID:JaderTS,项目名称:TrabalhoFinal,代码行数:11,代码来源:ProjectTypeController.cs


注:本文中的ProjectType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。