更新整理
This commit is contained in:
21
WPFluent.Gallery/Models/DisplayableIcon.cs
Normal file
21
WPFluent.Gallery/Models/DisplayableIcon.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using WPFluent.Controls;
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public struct DisplayableIcon
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Code { get; set; }
|
||||
|
||||
public string Symbol { get; set; }
|
||||
|
||||
public SymbolRegular Icon { get; set; }
|
||||
}
|
||||
16
WPFluent.Gallery/Models/Folder.cs
Normal file
16
WPFluent.Gallery/Models/Folder.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public record Folder
|
||||
{
|
||||
public string Name { get; init; }
|
||||
|
||||
public Folder(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
19
WPFluent.Gallery/Models/NavigationCard.cs
Normal file
19
WPFluent.Gallery/Models/NavigationCard.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using WPFluent.Controls;
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public record NavigationCard
|
||||
{
|
||||
public string? Name { get; init; }
|
||||
|
||||
public SymbolRegular Icon { get; init; }
|
||||
|
||||
public string? Description { get; init; }
|
||||
|
||||
public Type? PageType { get; init; }
|
||||
}
|
||||
24
WPFluent.Gallery/Models/Person.cs
Normal file
24
WPFluent.Gallery/Models/Person.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public record Person
|
||||
{
|
||||
public string FirstName { get; init; }
|
||||
|
||||
public string LastName { get; init; }
|
||||
|
||||
public string Name => $"{FirstName} {LastName}";
|
||||
|
||||
public string Company { get; init; }
|
||||
|
||||
public Person(string firstName, string lastName, string company)
|
||||
{
|
||||
FirstName = firstName;
|
||||
LastName = lastName;
|
||||
Company = company;
|
||||
}
|
||||
}
|
||||
27
WPFluent.Gallery/Models/Product.cs
Normal file
27
WPFluent.Gallery/Models/Product.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public class Product
|
||||
{
|
||||
public int ProductId { get; set; }
|
||||
|
||||
public int ProductCode { get; set; }
|
||||
|
||||
public string? ProductName { get; set; }
|
||||
|
||||
public string? QuantityPerUnit { get; set; }
|
||||
|
||||
public Unit Unit { get; set; }
|
||||
|
||||
public double UnitPrice { get; set; }
|
||||
|
||||
public string UnitPriceString => UnitPrice.ToString("F2");
|
||||
|
||||
public int UnitsInStock { get; set; }
|
||||
|
||||
public bool IsVirtual { get; set; }
|
||||
}
|
||||
13
WPFluent.Gallery/Models/Unit.cs
Normal file
13
WPFluent.Gallery/Models/Unit.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public enum Unit
|
||||
{
|
||||
Grams,
|
||||
Kilograms,
|
||||
Milliliters,
|
||||
}
|
||||
27
WPFluent.Gallery/Models/WindowCard.cs
Normal file
27
WPFluent.Gallery/Models/WindowCard.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using WPFluent.Controls;
|
||||
|
||||
namespace WPFluent.Gallery.Models;
|
||||
|
||||
public record WindowCard
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Description { get; init; }
|
||||
|
||||
public SymbolRegular Icon { get; init; }
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
public WindowCard(string name, string description, SymbolRegular icon, string value)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
Icon = icon;
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user