-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recreated project to allow x64 packaging
- Loading branch information
Showing
131 changed files
with
1,140 additions
and
482 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...F.Core/Contracts/Services/IFileService.cs → ...P.Core/Contracts/Services/IFileService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}"; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
EU4-PCP_WPF.Core/Services/FileService.cs → EU4-PCP.Core/Services/FileService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.