diff --git a/App.config b/App.config index 544efdc..3847826 100644 --- a/App.config +++ b/App.config @@ -28,7 +28,7 @@ - + diff --git a/Control/UserControls/Config/MotionControl.xaml b/Control/UserControls/Config/MotionControl.xaml index 30c8cc5..5605c17 100644 --- a/Control/UserControls/Config/MotionControl.xaml +++ b/Control/UserControls/Config/MotionControl.xaml @@ -41,7 +41,7 @@ - + diff --git a/Control/UserControls/Config/MotionControl.xaml.cs b/Control/UserControls/Config/MotionControl.xaml.cs index 43f9a3b..14d3761 100644 --- a/Control/UserControls/Config/MotionControl.xaml.cs +++ b/Control/UserControls/Config/MotionControl.xaml.cs @@ -1,5 +1,6 @@ using GeekDesk.Constant; using GeekDesk.Control.Windows; +using GeekDesk.Thread; using GeekDesk.Util; using GeekDesk.ViewModel; using HandyControl.Data; @@ -280,12 +281,14 @@ namespace GeekDesk.Control.UserControls.Config /// private void MouseMiddle_Changed(object sender, RoutedEventArgs e) { - + if (appConfig.MouseMiddleShow) + { + MouseHookThread.MiddleHook(); + } else + { + MouseHookThread.Dispose(); + } } - private void HookListener_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) - { - Console.WriteLine(e.KeyChar); - } } } diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml b/Control/UserControls/PannelCard/LeftCardControl.xaml index 82695bc..142fe88 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml @@ -20,6 +20,7 @@ + diff --git a/Control/UserControls/PannelCard/LeftCardControl.xaml.cs b/Control/UserControls/PannelCard/LeftCardControl.xaml.cs index ec537e4..dbe4646 100644 --- a/Control/UserControls/PannelCard/LeftCardControl.xaml.cs +++ b/Control/UserControls/PannelCard/LeftCardControl.xaml.cs @@ -28,11 +28,11 @@ namespace GeekDesk.Control.UserControls.PannelCard if (appData.AppConfig.SelectedMenuIndex >= appData.MenuList.Count || appData.AppConfig.SelectedMenuIndex == -1) { appData.AppConfig.SelectedMenuIcons = appData.MenuList[0].IconList; - } else + } + else { appData.AppConfig.SelectedMenuIcons = appData.MenuList[appData.AppConfig.SelectedMenuIndex].IconList; } - } DelegateCommand _swap; @@ -207,8 +207,9 @@ namespace GeekDesk.Control.UserControls.PannelCard //设置对应菜单的图标列表 if (MenuListBox.SelectedIndex == -1) { - appData.AppConfig.SelectedMenuIcons = appData.MenuList[appData.MenuList.Count-1].IconList; - } else + appData.AppConfig.SelectedMenuIcons = appData.MenuList[appData.MenuList.Count - 1].IconList; + } + else { appData.AppConfig.SelectedMenuIcons = appData.MenuList[MenuListBox.SelectedIndex].IconList; } diff --git a/Control/UserControls/PannelCard/RightCardControl.xaml b/Control/UserControls/PannelCard/RightCardControl.xaml index 1ebf46a..807e4ba 100644 --- a/Control/UserControls/PannelCard/RightCardControl.xaml +++ b/Control/UserControls/PannelCard/RightCardControl.xaml @@ -19,6 +19,7 @@