更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View 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; }
}

View 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;
}
}

View 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; }
}

View 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;
}
}

View 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; }
}

View 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,
}

View 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;
}
}