Skip to content

Commit

Permalink
Merge pull request #1620 from HandyOrg/t/bot/fix-codeformatting
Browse files Browse the repository at this point in the history
[Bot] Automated PR to fix formatting errors
  • Loading branch information
NaBian authored Jul 29, 2024
2 parents 51f0764 + bc20a19 commit d704338
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControlDemo_Avalonia/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Data.Core.Plugins;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace HandyControlDemo.Data;

public enum DemoType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.Data;
namespace HandyControlDemo.Data;

public class MessageToken
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;


namespace HandyControlDemo.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using CommunityToolkit.Mvvm.ComponentModel;

namespace HandyControlDemo.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.ComponentModel;

namespace HandyControlDemo.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControl.Data;
namespace HandyControl.Data;

public class ResourceToken
{
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControlDemo_Avalonia/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Interactivity;
using HandyControlDemo.UserControl;
using HandyControlDemo.ViewModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControlDemo_Avalonia/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia;

namespace HandyControlDemo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand All @@ -24,16 +24,16 @@ internal List<DemoInfoModel> GetDemoInfo()

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
{
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);
Expand Down Expand Up @@ -69,11 +69,11 @@ private static List<DemoItemModel> 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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;

namespace HandyControlDemo.Tools;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Avalonia.Controls;
using Avalonia.Controls;
using CommunityToolkit.Mvvm.Messaging;
using HandyControlDemo.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class MainContent : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class MainWindowContent : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class BorderDemoCtl : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class BrushDemoCtl : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class ButtonDemoCtl : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControlDemo.UserControl;
namespace HandyControlDemo.UserControl;

public partial class RepeatButtonDemoCtl : Avalonia.Controls.UserControl
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using CommunityToolkit.Mvvm.ComponentModel;

namespace HandyControlDemo.ViewModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Avalonia.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using HandyControlDemo.Service;
using Microsoft.Extensions.DependencyInjection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace HandyControl.Data;
namespace HandyControl.Data;

public enum VisualWrapping
{
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControl_Avalonia/Data/PanelUvSize.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;
using Avalonia.Layout;

namespace HandyControl.Data;
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControl_Avalonia/Data/ResourceToken.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ReSharper disable InconsistentNaming
// ReSharper disable InconsistentNaming
namespace HandyControl.Data;

public class ResourceToken
Expand Down
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia/HandyControl_Avalonia/Themes/Theme.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using Avalonia.Markup.Xaml;
using Avalonia.Styling;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;

namespace HandyControl.Tools;

Expand Down

0 comments on commit d704338

Please sign in to comment.