增加设置页面
增加礼物发货 超出6元 则发礼物二
This commit is contained in:
1 parent
d18460c83f
commit
5003ea93f8
11 files changed
+642
-46
No files matched your search
@@ -0,0 +1,40 @@
|
||||
using AllBase.Model.Config;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WPFCommon.Models;
|
||||
|
||||
namespace _29WxOrderWpf.ViewModels;
|
||||
|
||||
public class SettingViewModel : BindableBaseEx
|
||||
{
|
||||
public const string SettingFileName = "setting";
|
||||
public SettingViewModel()
|
||||
{
|
||||
}
|
||||
/// <summary>版本号</summary>
|
||||
public string Version
|
||||
{
|
||||
get => GetValue<string>();
|
||||
private set => SetValue(value);
|
||||
}
|
||||
|
||||
public bool AutoSwitchGiftType
|
||||
{
|
||||
get => GetValue<bool>();
|
||||
set => SetValue(value);
|
||||
}
|
||||
public void Assign(SettingConfig config)
|
||||
{
|
||||
AutoSwitchGiftType = config.AutoSwitchGiftType;
|
||||
}
|
||||
public SettingConfig ToConfig()
|
||||
{
|
||||
return new SettingConfig
|
||||
{
|
||||
AutoSwitchGiftType = AutoSwitchGiftType
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user