From 7b39cb90d73aa311e7bff9b252c06d7d581e7794 Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Fri, 20 Jan 2023 20:25:38 +0800 Subject: [PATCH] chore: remove useless namespace. --- .../HandyControlDemo_Shared/Data/Model/DemoInfoModel.cs | 4 ++-- .../UserControl/Main/LeftMainContent.xaml.cs | 1 - .../ViewModel/Controls/NotifyIconDemoViewModel.cs | 3 +-- src/Shared/HandyControl_Shared/Controls/Other/Divider.cs | 3 +-- .../HandyControl_Shared/Tools/Generator/ComparerGenerator.cs | 1 - 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Shared/HandyControlDemo_Shared/Data/Model/DemoInfoModel.cs b/src/Shared/HandyControlDemo_Shared/Data/Model/DemoInfoModel.cs index 0f1847db..c412da7f 100644 --- a/src/Shared/HandyControlDemo_Shared/Data/Model/DemoInfoModel.cs +++ b/src/Shared/HandyControlDemo_Shared/Data/Model/DemoInfoModel.cs @@ -13,7 +13,7 @@ public class DemoInfoModel : ViewModelBase { get => _title; #if NET40 - set => Set(nameof(Title), ref _title, value); + set => Set(nameof(Title), ref _title, value); #else set => Set(ref _title, value); #endif @@ -25,7 +25,7 @@ public class DemoInfoModel : ViewModelBase { get => _selectedIndex; #if NET40 - set => Set(nameof(SelectedIndex), ref _selectedIndex, value); + set => Set(nameof(SelectedIndex), ref _selectedIndex, value); #else set => Set(ref _selectedIndex, value); #endif diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml.cs b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml.cs index ad2c645b..c64d9632 100644 --- a/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml.cs +++ b/src/Shared/HandyControlDemo_Shared/UserControl/Main/LeftMainContent.xaml.cs @@ -10,7 +10,6 @@ using HandyControl.Tools; using HandyControlDemo.Data; using HandyControlDemo.ViewModel; - namespace HandyControlDemo.UserControl; /// diff --git a/src/Shared/HandyControlDemo_Shared/ViewModel/Controls/NotifyIconDemoViewModel.cs b/src/Shared/HandyControlDemo_Shared/ViewModel/Controls/NotifyIconDemoViewModel.cs index f45cc02d..27a89931 100644 --- a/src/Shared/HandyControlDemo_Shared/ViewModel/Controls/NotifyIconDemoViewModel.cs +++ b/src/Shared/HandyControlDemo_Shared/ViewModel/Controls/NotifyIconDemoViewModel.cs @@ -1,5 +1,4 @@ -using System; -using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using HandyControl.Controls; using HandyControl.Data; diff --git a/src/Shared/HandyControl_Shared/Controls/Other/Divider.cs b/src/Shared/HandyControl_Shared/Controls/Other/Divider.cs index 8cbfb07a..35758a31 100644 --- a/src/Shared/HandyControl_Shared/Controls/Other/Divider.cs +++ b/src/Shared/HandyControl_Shared/Controls/Other/Divider.cs @@ -1,5 +1,4 @@ -using System.ComponentModel; -using System.Windows; +using System.Windows; using System.Windows.Controls; using System.Windows.Markup; using System.Windows.Media; diff --git a/src/Shared/HandyControl_Shared/Tools/Generator/ComparerGenerator.cs b/src/Shared/HandyControl_Shared/Tools/Generator/ComparerGenerator.cs index 4f61f348..04854f5d 100644 --- a/src/Shared/HandyControl_Shared/Tools/Generator/ComparerGenerator.cs +++ b/src/Shared/HandyControl_Shared/Tools/Generator/ComparerGenerator.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using HandyControl.Collections; using HandyControl.Data; namespace HandyControl.Tools; -- GitLab