'添加自定义图标大小','待办任务可使用CRON表达式自定义提醒频率'
This commit is contained in:
@@ -3,6 +3,7 @@ using GeekDesk.ViewModel;
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -87,5 +88,40 @@ namespace GeekDesk.Control.UserControls.Config
|
||||
Window.GetWindow(this).DragMove();
|
||||
}
|
||||
}
|
||||
|
||||
private void PreviewSlider_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
CheckButtonUpClass cbu = new CheckButtonUpClass
|
||||
{
|
||||
e = e
|
||||
};
|
||||
System.Threading.ThreadStart ts = new System.Threading.ThreadStart(cbu.CheckButtonUp);
|
||||
System.Threading.Thread t = new System.Threading.Thread(ts);
|
||||
t.Start();
|
||||
}
|
||||
|
||||
private class CheckButtonUpClass
|
||||
{
|
||||
public MouseButtonEventArgs e;
|
||||
|
||||
public void CheckButtonUp()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (e.LeftButton == MouseButtonState.Released)
|
||||
{
|
||||
App.Current.Dispatcher.Invoke((Action)(() =>
|
||||
{
|
||||
AppData appData = MainWindow.appData;
|
||||
ObservableCollection<IconInfo> selectIcons = appData.AppConfig.SelectedMenuIcons;
|
||||
appData.AppConfig.SelectedMenuIcons = null;
|
||||
appData.AppConfig.SelectedMenuIcons = selectIcons;
|
||||
}));
|
||||
return;
|
||||
}
|
||||
System.Threading.Thread.Sleep(50);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user