添加项目文件。

This commit is contained in:
liufei
2021-04-12 13:46:05 +08:00
parent b2b912a812
commit cc399e2ef7
32 changed files with 3794 additions and 0 deletions

88
ViewModel/AppConfig.cs Normal file
View File

@@ -0,0 +1,88 @@
using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GeekDesk.Constant;
namespace GeekDesk.ViewModel
{
[Serializable]
public class AppConfig : ViewModelBase
{
private int menuSortType = (int)SortType.CUSTOM; //菜单排序类型
private int iconSortType = (int)SortType.CUSTOM; //图表排序类型
private double windowWidth = (double)DefaultConstant.WINDOW_WIDTH; //窗口宽度
private double windowHeight = (double)DefaultConstant.WINDOW_HEIGHT; //窗口高度
private double menuCardWidth = (double)DefaultConstant.MENU_CARD_WIDHT;//菜单栏宽度
#region GetSet
public int MenuSortType {
get
{
return menuSortType;
}
set
{
menuSortType = value;
RaisePropertyChanged();
}
}
public int IconSortType
{
get
{
return iconSortType;
}
set
{
iconSortType = value;
RaisePropertyChanged();
}
}
public double WindowWidth
{
get
{
return windowWidth;
}
set
{
windowWidth = value;
RaisePropertyChanged();
}
}
public double WindowHeight
{
get
{
return windowHeight;
}
set
{
windowHeight = value;
RaisePropertyChanged();
}
}
public double MenuCardWidth
{
get
{
return menuCardWidth;
}
set
{
menuCardWidth = value;
RaisePropertyChanged();
}
}
#endregion
}
}