Merge pull request #1620 from HandyOrg/t/bot/fix-codeformatting

[Bot] Automated PR to fix formatting errors
This commit is contained in:
NaBian authored and GitHub committed 2024-07-29 21:42:04 +08:00
commit d704338680
29 files changed
+35 -35

No files matched your search

@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Data.Core.Plugins;
@@ -1,4 +1,4 @@
namespace HandyControlDemo.Data;
public enum DemoType
@@ -1,4 +1,4 @@
namespace HandyControlDemo.Data;
namespace HandyControlDemo.Data;
public class MessageToken
{
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace HandyControlDemo.Data;
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using CommunityToolkit.Mvvm.ComponentModel;
namespace HandyControlDemo.Data;
@@ -1,4 +1,4 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.ComponentModel;
namespace HandyControlDemo.Data;
@@ -1,4 +1,4 @@
namespace HandyControl.Data;
namespace HandyControl.Data;
public class ResourceToken
{
@@ -1,4 +1,4 @@
using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Interactivity;
using HandyControlDemo.UserControl;
using HandyControlDemo.ViewModel;
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia;
namespace HandyControlDemo;
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -24,7 +24,7 @@ public class DataService
foreach (dynamic? item in jsonObj)
{
string? titleKey = (string) item.title;
string? titleKey = (string)item.title;
List<DemoItemModel> list = Convert2DemoItemList(item.demoItemList);
var demoInfoModel = new DemoInfoModel
@@ -32,8 +32,8 @@ public class DataService
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 @@ public class DataService
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";
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
namespace HandyControlDemo.Tools;
@@ -1,4 +1,4 @@
using Avalonia.Controls;
using Avalonia.Controls;
using CommunityToolkit.Mvvm.Messaging;
using HandyControlDemo.Data;
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class MainContent : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class MainWindowContent : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class BorderDemoCtl : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class BrushDemoCtl : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class ButtonDemoCtl : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;
public partial class RepeatButtonDemoCtl : Avalonia.Controls.UserControl
{
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using CommunityToolkit.Mvvm.ComponentModel;
namespace HandyControlDemo.ViewModel;
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Avalonia.Threading;
@@ -1,4 +1,4 @@
using System;
using System;
using HandyControlDemo.Service;
using Microsoft.Extensions.DependencyInjection;
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
@@ -1,4 +1,4 @@
namespace HandyControl.Data;
namespace HandyControl.Data;
public enum VisualWrapping
{
@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;
using Avalonia.Layout;
namespace HandyControl.Data;
@@ -1,4 +1,4 @@
// ReSharper disable InconsistentNaming
// ReSharper disable InconsistentNaming
namespace HandyControl.Data;
public class ResourceToken
@@ -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")]
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia.Markup.Xaml;
using Avalonia.Styling;
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia;
@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;
namespace HandyControl.Tools;