暂时更改一部分Skill

This commit is contained in:
chfei committed 2026-10-27 19:01:56 +08:00
1 parent 84b28f9672
commit 6d4629e4ac
53 files changed
+5293 -10

No files matched your search

@@ -5,4 +5,4 @@
[assembly: XmlnsDefinition("Store.Management.Framework", "Store.Management.Framework.Controls")]
[assembly: XmlnsDefinition("Store.Management.Framework", "Store.Management.Framework.Controls.Attach")]
[assembly: XmlnsPrefix("Store.Management.Framework", "mf")]
[assembly: XmlnsPrefix("Store.Management.Framework", "f")]
@@ -0,0 +1,35 @@
namespace Store.Management.Framework.Configs;
/// <summary>
/// 应用级常量配置:代码标识与显示名称分离。
/// </summary>
public static class AppConfig
{
/// <summary>代码用软件名称(程序集/目录/Mutex 等标识)。</summary>
public const string AppName = "Store.Management";
/// <summary>显示与输出用软件名称(启动页、对话框标题、安装器显示名等)。</summary>
public const string AppDisplayName = "Store.Management";
/// <summary>是否是发布版本。</summary>
public static bool IsRelease
{
get
{
#if RELEASE
return true;
#else
return false;
#endif
}
}
/// <summary>当前构建模式显示名(Release / Debug)。</summary>
public static string BuildMode
{
get
{
return IsRelease ? "Release" : "Debug";
}
}
}
@@ -16,7 +16,7 @@ public sealed class FolderConfig : IFolderConfig
string IFolderConfig.LoggingFolder => LoggingFolder;
string IFolderConfig.CacheFolder => CacheFolder;
public const string AppName = "Store.Management";
public const string AppName = "StoreManagement";
/// <summary>安装目录,用于读取随程序分发的资源。</summary>
public static string ExeFolder => AppContext.BaseDirectory;
@@ -36,7 +36,10 @@ public partial class DialogWindow : WindowBase, IDialogWindow
public DialogWindow()
{
InitializeComponent();
Owner = Application.Current.MainWindow;
if (Application.Current.MainWindow is Window owner && !ReferenceEquals(owner, this))
{
Owner = owner;
}
isConstructorSuccessful = true;
dialogWindowStyle = (Style)TryFindResource("DialogWindowStyle");
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.ComponentModel;
namespace Store.Management.Framework.Interfaces
{
public interface IMessageBoxService
{
//MessageResult Show(string messageBoxText, string caption, MessageBoxButton button, MessageIcon icon, MessageResult defaultResult);
}
}
@@ -11,6 +11,7 @@
<ItemGroup>
<PackageReference Include="HandyControl" Version="3.6.2.1" />
<PackageReference Include="MAX.Common.WPF" Version="1.4.23" />
<ProjectReference Include="..\Core\MAX.Core\MAX.Core.csproj" />
<ProjectReference Include="..\Core\MAX.Framework\MAX.Framework.csproj" />
</ItemGroup>
@@ -0,0 +1,34 @@
using Prism.Mvvm;
namespace Store.Management.Framework.ViewModels;
/// <summary>异步操作的加载消息与错误状态。</summary>
public sealed class LoadingStatus : BindableBase
{
private bool _isLoading;
private string _message = "";
private string _errorMessage = "";
public bool IsLoading { get => _isLoading; private set => SetProperty(ref _isLoading, value); }
public string Message { get => _message; private set => SetProperty(ref _message, value); }
public string ErrorMessage { get => _errorMessage; private set => SetProperty(ref _errorMessage, value); }
public void Initialize(string message)
{
ErrorMessage = "";
Message = message;
IsLoading = true;
}
public void Done()
{
IsLoading = false;
Message = "";
}
public void Error(string message)
{
Done();
ErrorMessage = message;
}
}