From bc20a1977f9cc287eba7aedc89e36e03f95479a5 Mon Sep 17 00:00:00 2001 From: "github-actions-dotnet-formatter[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jul 2024 13:34:52 +0000 Subject: [PATCH] Automated dotnet-format update --- .../HandyControlDemo_Avalonia/App.axaml.cs | 2 +- .../Data/Enum/DemoType.cs | 2 +- .../HandyControlDemo_Avalonia/Data/MessageToken.cs | 2 +- .../Data/Model/DemoDataModel.cs | 2 +- .../Data/Model/DemoInfoModel.cs | 2 +- .../Data/Model/DemoItemModel.cs | 2 +- .../Data/ResourceToken.cs | 2 +- .../HandyControlDemo_Avalonia/MainWindow.axaml.cs | 2 +- src/Avalonia/HandyControlDemo_Avalonia/Program.cs | 2 +- .../Service/Data/DataService.cs | 14 +++++++------- .../Tools/Helper/AssemblyHelper.cs | 2 +- .../UserControl/Main/LeftMainContent.axaml.cs | 2 +- .../UserControl/Main/MainContent.axaml.cs | 2 +- .../UserControl/Main/MainWindowContent.axaml.cs | 2 +- .../UserControl/Styles/BorderDemoCtl.axaml.cs | 2 +- .../UserControl/Styles/BrushDemoCtl.axaml.cs | 2 +- .../UserControl/Styles/ButtonDemoCtl.axaml.cs | 2 +- .../Styles/RepeatButtonDemoCtl.axaml.cs | 2 +- .../ViewModel/DemoViewModelBase`1.cs | 2 +- .../ViewModel/Main/MainViewModel.cs | 2 +- .../ViewModel/ViewModelLocator.cs | 2 +- .../Controls/Panel/UniformSpacingPanel.cs | 2 +- .../Data/Enum/VisualWrapping.cs | 2 +- .../HandyControl_Avalonia/Data/PanelUvSize.cs | 2 +- .../HandyControl_Avalonia/Data/ResourceToken.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- .../HandyControl_Avalonia/Themes/Theme.axaml.cs | 2 +- .../Tools/Converter/BorderClipConverter.cs | 2 +- .../Tools/Helper/ResourceHelper.cs | 2 +- 29 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/Avalonia/HandyControlDemo_Avalonia/App.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/App.axaml.cs index 74902c4b9..af611b2ca 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/App.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/App.axaml.cs @@ -1,4 +1,4 @@ -using System.Globalization; +using System.Globalization; using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Data.Core.Plugins; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/Enum/DemoType.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/Enum/DemoType.cs index 22fe300be..3bbf4f6c3 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/Enum/DemoType.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/Enum/DemoType.cs @@ -1,4 +1,4 @@ - + namespace HandyControlDemo.Data; public enum DemoType diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/MessageToken.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/MessageToken.cs index d0ef1dd6d..126617a3c 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/MessageToken.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/MessageToken.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.Data; +namespace HandyControlDemo.Data; public class MessageToken { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoDataModel.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoDataModel.cs index 610343344..1820a56de 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoDataModel.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoDataModel.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace HandyControlDemo.Data; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoInfoModel.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoInfoModel.cs index 6f36776e5..2c81470e7 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoInfoModel.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoInfoModel.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using CommunityToolkit.Mvvm.ComponentModel; namespace HandyControlDemo.Data; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoItemModel.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoItemModel.cs index d81a7655f..68097b1d4 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoItemModel.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/Model/DemoItemModel.cs @@ -1,4 +1,4 @@ -using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.ComponentModel; namespace HandyControlDemo.Data; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Data/ResourceToken.cs b/src/Avalonia/HandyControlDemo_Avalonia/Data/ResourceToken.cs index 21e929a55..db0b7a66c 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Data/ResourceToken.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Data/ResourceToken.cs @@ -1,4 +1,4 @@ -namespace HandyControl.Data; +namespace HandyControl.Data; public class ResourceToken { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/MainWindow.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/MainWindow.axaml.cs index 3f7a12772..c09725601 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/MainWindow.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/MainWindow.axaml.cs @@ -1,4 +1,4 @@ -using Avalonia.Controls; +using Avalonia.Controls; using Avalonia.Interactivity; using HandyControlDemo.UserControl; using HandyControlDemo.ViewModel; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Program.cs b/src/Avalonia/HandyControlDemo_Avalonia/Program.cs index 3b0751f82..8cc817a5d 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Program.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using Avalonia; namespace HandyControlDemo; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Service/Data/DataService.cs b/src/Avalonia/HandyControlDemo_Avalonia/Service/Data/DataService.cs index 01da66db2..4ae0b603c 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Service/Data/DataService.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Service/Data/DataService.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -24,7 +24,7 @@ internal List GetDemoInfo() foreach (dynamic? item in jsonObj) { - string? titleKey = (string) item.title; + string? titleKey = (string)item.title; List list = Convert2DemoItemList(item.demoItemList); var demoInfoModel = new DemoInfoModel @@ -32,8 +32,8 @@ internal List GetDemoInfo() Key = titleKey, Title = titleKey, DemoItemList = list, - SelectedIndex = (int) item.selectedIndex, - IsGroupEnabled = (bool) item.group + SelectedIndex = (int)item.selectedIndex, + IsGroupEnabled = (bool)item.group }; infoList.Add(demoInfoModel); @@ -69,11 +69,11 @@ private static List Convert2DemoItemList(dynamic list) foreach (dynamic? item in list) { - string? name = (string) item[0]; + string? name = (string)item[0]; string targetCtlName = item[1]; string imageBrushName = item[2]; - bool isNew = !string.IsNullOrEmpty((string) item[3]); - string? groupName = (string) item[4]; + bool isNew = !string.IsNullOrEmpty((string)item[3]); + string? groupName = (string)item[4]; if (string.IsNullOrEmpty(groupName)) { groupName = "Misc"; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/Tools/Helper/AssemblyHelper.cs b/src/Avalonia/HandyControlDemo_Avalonia/Tools/Helper/AssemblyHelper.cs index 8f5162716..459cc04ad 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/Tools/Helper/AssemblyHelper.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/Tools/Helper/AssemblyHelper.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace HandyControlDemo.Tools; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/LeftMainContent.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/LeftMainContent.axaml.cs index 1390e14e3..30e7f5624 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/LeftMainContent.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/LeftMainContent.axaml.cs @@ -1,4 +1,4 @@ -using Avalonia.Controls; +using Avalonia.Controls; using CommunityToolkit.Mvvm.Messaging; using HandyControlDemo.Data; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainContent.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainContent.axaml.cs index f58a3b0a1..e246ca839 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainContent.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainContent.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class MainContent : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainWindowContent.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainWindowContent.axaml.cs index fe2934594..55bdce6a8 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainWindowContent.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Main/MainWindowContent.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class MainWindowContent : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml.cs index e5ce5d374..fcfa2efa6 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BorderDemoCtl.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class BorderDemoCtl : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BrushDemoCtl.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BrushDemoCtl.axaml.cs index 5858fe93b..d148a1b21 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BrushDemoCtl.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/BrushDemoCtl.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class BrushDemoCtl : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/ButtonDemoCtl.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/ButtonDemoCtl.axaml.cs index bffd68d91..f65068e4c 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/ButtonDemoCtl.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/ButtonDemoCtl.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class ButtonDemoCtl : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/RepeatButtonDemoCtl.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/RepeatButtonDemoCtl.axaml.cs index d3fc581af..788aee5aa 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/RepeatButtonDemoCtl.axaml.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/RepeatButtonDemoCtl.axaml.cs @@ -1,4 +1,4 @@ -namespace HandyControlDemo.UserControl; +namespace HandyControlDemo.UserControl; public partial class RepeatButtonDemoCtl : Avalonia.Controls.UserControl { diff --git a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/DemoViewModelBase`1.cs b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/DemoViewModelBase`1.cs index d8754a0b2..4c1f02801 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/DemoViewModelBase`1.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/DemoViewModelBase`1.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using CommunityToolkit.Mvvm.ComponentModel; namespace HandyControlDemo.ViewModel; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/Main/MainViewModel.cs b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/Main/MainViewModel.cs index 29ac68d50..478af4d4f 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/Main/MainViewModel.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/Main/MainViewModel.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.ObjectModel; using System.Linq; using Avalonia.Threading; diff --git a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/ViewModelLocator.cs b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/ViewModelLocator.cs index 14dd349bf..fe5a432e0 100644 --- a/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/ViewModelLocator.cs +++ b/src/Avalonia/HandyControlDemo_Avalonia/ViewModel/ViewModelLocator.cs @@ -1,4 +1,4 @@ -using System; +using System; using HandyControlDemo.Service; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Avalonia/HandyControl_Avalonia/Controls/Panel/UniformSpacingPanel.cs b/src/Avalonia/HandyControl_Avalonia/Controls/Panel/UniformSpacingPanel.cs index ddc533cb1..7996de78d 100644 --- a/src/Avalonia/HandyControl_Avalonia/Controls/Panel/UniformSpacingPanel.cs +++ b/src/Avalonia/HandyControl_Avalonia/Controls/Panel/UniformSpacingPanel.cs @@ -1,4 +1,4 @@ -using System; +using System; using Avalonia; using Avalonia.Controls; using Avalonia.Layout; diff --git a/src/Avalonia/HandyControl_Avalonia/Data/Enum/VisualWrapping.cs b/src/Avalonia/HandyControl_Avalonia/Data/Enum/VisualWrapping.cs index d744c97ce..f1ac74821 100644 --- a/src/Avalonia/HandyControl_Avalonia/Data/Enum/VisualWrapping.cs +++ b/src/Avalonia/HandyControl_Avalonia/Data/Enum/VisualWrapping.cs @@ -1,4 +1,4 @@ -namespace HandyControl.Data; +namespace HandyControl.Data; public enum VisualWrapping { diff --git a/src/Avalonia/HandyControl_Avalonia/Data/PanelUvSize.cs b/src/Avalonia/HandyControl_Avalonia/Data/PanelUvSize.cs index e5219a0fc..8f1dc5265 100644 --- a/src/Avalonia/HandyControl_Avalonia/Data/PanelUvSize.cs +++ b/src/Avalonia/HandyControl_Avalonia/Data/PanelUvSize.cs @@ -1,4 +1,4 @@ -using Avalonia; +using Avalonia; using Avalonia.Layout; namespace HandyControl.Data; diff --git a/src/Avalonia/HandyControl_Avalonia/Data/ResourceToken.cs b/src/Avalonia/HandyControl_Avalonia/Data/ResourceToken.cs index 86ce6df32..8053ae961 100644 --- a/src/Avalonia/HandyControl_Avalonia/Data/ResourceToken.cs +++ b/src/Avalonia/HandyControl_Avalonia/Data/ResourceToken.cs @@ -1,4 +1,4 @@ -// ReSharper disable InconsistentNaming +// ReSharper disable InconsistentNaming namespace HandyControl.Data; public class ResourceToken diff --git a/src/Avalonia/HandyControl_Avalonia/Properties/AssemblyInfo.cs b/src/Avalonia/HandyControl_Avalonia/Properties/AssemblyInfo.cs index e2a2d6e05..611bb00d9 100644 --- a/src/Avalonia/HandyControl_Avalonia/Properties/AssemblyInfo.cs +++ b/src/Avalonia/HandyControl_Avalonia/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -using Avalonia.Metadata; +using Avalonia.Metadata; [assembly: XmlnsDefinition("https://handyorg.github.io/handycontrol", "HandyControl.Controls")] [assembly: XmlnsDefinition("https://handyorg.github.io/handycontrol", "HandyControl.Tools")] diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Theme.axaml.cs b/src/Avalonia/HandyControl_Avalonia/Themes/Theme.axaml.cs index c819edeb8..f8cc66071 100644 --- a/src/Avalonia/HandyControl_Avalonia/Themes/Theme.axaml.cs +++ b/src/Avalonia/HandyControl_Avalonia/Themes/Theme.axaml.cs @@ -1,4 +1,4 @@ -using System; +using System; using Avalonia.Markup.Xaml; using Avalonia.Styling; diff --git a/src/Avalonia/HandyControl_Avalonia/Tools/Converter/BorderClipConverter.cs b/src/Avalonia/HandyControl_Avalonia/Tools/Converter/BorderClipConverter.cs index 0c79f5da3..4db742918 100644 --- a/src/Avalonia/HandyControl_Avalonia/Tools/Converter/BorderClipConverter.cs +++ b/src/Avalonia/HandyControl_Avalonia/Tools/Converter/BorderClipConverter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Globalization; using Avalonia; diff --git a/src/Avalonia/HandyControl_Avalonia/Tools/Helper/ResourceHelper.cs b/src/Avalonia/HandyControl_Avalonia/Tools/Helper/ResourceHelper.cs index 0f8a913d5..34f6e9638 100644 --- a/src/Avalonia/HandyControl_Avalonia/Tools/Helper/ResourceHelper.cs +++ b/src/Avalonia/HandyControl_Avalonia/Tools/Helper/ResourceHelper.cs @@ -1,4 +1,4 @@ -using Avalonia; +using Avalonia; namespace HandyControl.Tools;