🎉 集成everything

This commit is contained in:
BookerLiu
2023-03-31 09:06:04 +08:00
parent d0547da214
commit a18a66352c
24 changed files with 610 additions and 1641 deletions

View File

@@ -105,6 +105,23 @@ namespace GeekDesk.ViewModel
private bool? secondsWindow; //秒数窗口 默认打开
private bool? enableEveryThing;
public bool? EnableEveryThing
{
get
{
if (enableEveryThing == null) enableEveryThing = false;
return enableEveryThing;
}
set
{
enableEveryThing = value;
OnPropertyChanged("EnableEveryThing");
}
}
#region GetSet
public bool? SecondsWindow

View File

@@ -283,6 +283,7 @@ namespace GeekDesk.ViewModel
{
bitmapImage = value;
ImageByteArr_NoWrite = ImageUtil.BitmapImageToByte(bitmapImage);
OnPropertyChanged("BitmapImage_NoWrite");
}
}
@@ -346,7 +347,10 @@ namespace GeekDesk.ViewModel
private void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
CommonCode.SaveAppData(MainWindow.appData, Constants.DATA_FILE_PATH);
if (propertyName!=null && propertyName.Contains("NoWrite"))
{
CommonCode.SaveAppData(MainWindow.appData, Constants.DATA_FILE_PATH);
}
}

View File

@@ -21,8 +21,15 @@ namespace GeekDesk.ViewModel.Temp
}
}
public static void RemoveAll()
{
while (IconList.Count > 0)
{
IconList.RemoveAt(IconList.Count - 1);
}
}
public static event PropertyChangedEventHandler PropertyChanged;
private static event PropertyChangedEventHandler PropertyChanged;
private static void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName));