Skip to content

Commit

Permalink
Recreated project to allow x64 packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex4SSB committed Mar 20, 2021
1 parent 31c46c3 commit c8aca66
Show file tree
Hide file tree
Showing 131 changed files with 1,140 additions and 482 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EU4_PCP_WPF.Core.Contracts.Services
namespace EU4_PCP.Core.Contracts.Services
{
public interface IFileService
{
Expand Down
12 changes: 12 additions & 0 deletions EU4-PCP.Core/Contracts/Services/ISampleDataService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;

using EU4_PCP.Core.Models;

namespace EU4_PCP.Core.Contracts.Services
{
public interface ISampleDataService
{
Task<IEnumerable<SampleOrder>> GetGridDataAsync();
}
}
16 changes: 16 additions & 0 deletions EU4-PCP.Core/EU4-PCP.Core.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>EU4_PCP.Core</RootNamespace>
<Platforms>AnyCPU;x64;x86</Platforms>
</PropertyGroup>

<ItemGroup>
<Folder Include="Models\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
</Project>
33 changes: 33 additions & 0 deletions EU4-PCP.Core/Models/SampleCompany.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;

namespace EU4_PCP.Core.Models
{
// TODO WTS: Remove this class once your pages/features are using your data.
// This is used by the SampleDataService.
// It is the model class we use to display data on pages like Grid, Chart, and Master Detail.
public class SampleCompany
{
public string CompanyID { get; set; }

public string CompanyName { get; set; }

public string ContactName { get; set; }

public string ContactTitle { get; set; }

public string Address { get; set; }

public string City { get; set; }

public string PostalCode { get; set; }

public string Country { get; set; }

public string Phone { get; set; }

public string Fax { get; set; }

public ICollection<SampleOrder> Orders { get; set; }
}
}
46 changes: 46 additions & 0 deletions EU4-PCP.Core/Models/SampleOrder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;

namespace EU4_PCP.Core.Models
{
// TODO WTS: Remove this class once your pages/features are using your data.
// This is used by the SampleDataService.
// It is the model class we use to display data on pages like Grid, Chart, and Master Detail.
public class SampleOrder
{
public long OrderID { get; set; }

public DateTime OrderDate { get; set; }

public DateTime RequiredDate { get; set; }

public DateTime ShippedDate { get; set; }

public string ShipperName { get; set; }

public string ShipperPhone { get; set; }

public double Freight { get; set; }

public string Company { get; set; }

public string ShipTo { get; set; }

public double OrderTotal { get; set; }

public string Status { get; set; }

public char Symbol => (char)SymbolCode;

public int SymbolCode { get; set; }

public ICollection<SampleOrderDetail> Details { get; set; }

public override string ToString()
{
return $"{Company} {Status}";
}

public string ShortDescription => $"Order ID: {OrderID}";
}
}
30 changes: 30 additions & 0 deletions EU4-PCP.Core/Models/SampleOrderDetail.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;

namespace EU4_PCP.Core.Models
{
// TODO WTS: Remove this class once your pages/features are using your data.
// This is used by the SampleDataService.
// It is the model class we use to display data on pages like Grid, Chart, and Master Detail.
public class SampleOrderDetail
{
public long ProductID { get; set; }

public string ProductName { get; set; }

public int Quantity { get; set; }

public double Discount { get; set; }

public string QuantityPerUnit { get; set; }

public double UnitPrice { get; set; }

public string CategoryName { get; set; }

public string CategoryDescription { get; set; }

public double Total { get; set; }

public string ShortDescription => $"Product ID: {ProductID} - {ProductName}";
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.IO;
using System.Text;

using EU4_PCP_WPF.Core.Contracts.Services;
using EU4_PCP.Core.Contracts.Services;

using Newtonsoft.Json;

namespace EU4_PCP_WPF.Core.Services
namespace EU4_PCP.Core.Services
{
public class FileService : IFileService
{
Expand Down
Loading

0 comments on commit c8aca66

Please sign in to comment.