本文整理汇总了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;
}
示例2: OvlModelSearchResult
public OvlModelSearchResult(ProjectType type, int modelsFound, int totalModels, List<string> remainingOvlModels)
{
_type = type;
_modelsFound = modelsFound;
_totalModels = totalModels;
_remainingOvlModels = remainingOvlModels;
}
示例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;
}
示例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;
}
示例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);
}
示例6: ProjectInfo
public ProjectInfo( ProjectType pt )
{
_po = new Options();
_strName = null;
_rc = new RunCollection( this );
_pt = pt;
}
示例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>();
}
示例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;
}
示例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;
}
示例10: ProjectUploadingEventArg
public ProjectUploadingEventArg(DomainActionData actionData, string projectId, string projectName, ProjectType projectType, ProjectSubtype projectSubtype)
: base(actionData)
{
ProjectId = projectId;
ProjectName = projectName;
ProjectType = projectType;
ProjectSubtype = projectSubtype;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例15: Create
public ActionResult Create(ProjectType projecttype)
{
if (ModelState.IsValid)
{
db.ProjectTypes.Add(projecttype);
db.SaveChanges();
return RedirectToAction("Index");
}
return View(projecttype);
}