🎉 集成everything
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user