Merge pull request #1620 from HandyOrg/t/bot/fix-codeformatting
[Bot] Automated PR to fix formatting errors
This commit is contained in:
29 files changed
+35
-35
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Controls.ApplicationLifetimes;
|
using Avalonia.Controls.ApplicationLifetimes;
|
||||||
using Avalonia.Data.Core.Plugins;
|
using Avalonia.Data.Core.Plugins;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
namespace HandyControlDemo.Data;
|
namespace HandyControlDemo.Data;
|
||||||
|
|
||||||
public enum DemoType
|
public enum DemoType
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControlDemo.Data;
|
namespace HandyControlDemo.Data;
|
||||||
|
|
||||||
public class MessageToken
|
public class MessageToken
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace HandyControlDemo.Data;
|
namespace HandyControlDemo.Data;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
|
||||||
namespace HandyControlDemo.Data;
|
namespace HandyControlDemo.Data;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
|
||||||
namespace HandyControlDemo.Data;
|
namespace HandyControlDemo.Data;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControl.Data;
|
namespace HandyControl.Data;
|
||||||
|
|
||||||
public class ResourceToken
|
public class ResourceToken
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Interactivity;
|
using Avalonia.Interactivity;
|
||||||
using HandyControlDemo.UserControl;
|
using HandyControlDemo.UserControl;
|
||||||
using HandyControlDemo.ViewModel;
|
using HandyControlDemo.ViewModel;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
|
|
||||||
namespace HandyControlDemo;
|
namespace HandyControlDemo;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -24,7 +24,7 @@ public class DataService
|
|||||||
|
|
||||||
foreach (dynamic? item in jsonObj)
|
foreach (dynamic? item in jsonObj)
|
||||||
{
|
{
|
||||||
string? titleKey = (string) item.title;
|
string? titleKey = (string)item.title;
|
||||||
List<DemoItemModel> list = Convert2DemoItemList(item.demoItemList);
|
List<DemoItemModel> list = Convert2DemoItemList(item.demoItemList);
|
||||||
|
|
||||||
var demoInfoModel = new DemoInfoModel
|
var demoInfoModel = new DemoInfoModel
|
||||||
@@ -32,8 +32,8 @@ public class DataService
|
|||||||
Key = titleKey,
|
Key = titleKey,
|
||||||
Title = titleKey,
|
Title = titleKey,
|
||||||
DemoItemList = list,
|
DemoItemList = list,
|
||||||
SelectedIndex = (int) item.selectedIndex,
|
SelectedIndex = (int)item.selectedIndex,
|
||||||
IsGroupEnabled = (bool) item.group
|
IsGroupEnabled = (bool)item.group
|
||||||
};
|
};
|
||||||
|
|
||||||
infoList.Add(demoInfoModel);
|
infoList.Add(demoInfoModel);
|
||||||
@@ -69,11 +69,11 @@ public class DataService
|
|||||||
|
|
||||||
foreach (dynamic? item in list)
|
foreach (dynamic? item in list)
|
||||||
{
|
{
|
||||||
string? name = (string) item[0];
|
string? name = (string)item[0];
|
||||||
string targetCtlName = item[1];
|
string targetCtlName = item[1];
|
||||||
string imageBrushName = item[2];
|
string imageBrushName = item[2];
|
||||||
bool isNew = !string.IsNullOrEmpty((string) item[3]);
|
bool isNew = !string.IsNullOrEmpty((string)item[3]);
|
||||||
string? groupName = (string) item[4];
|
string? groupName = (string)item[4];
|
||||||
if (string.IsNullOrEmpty(groupName))
|
if (string.IsNullOrEmpty(groupName))
|
||||||
{
|
{
|
||||||
groupName = "Misc";
|
groupName = "Misc";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace HandyControlDemo.Tools;
|
namespace HandyControlDemo.Tools;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using CommunityToolkit.Mvvm.Messaging;
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
using HandyControlDemo.Data;
|
using HandyControlDemo.Data;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControlDemo.UserControl;
|
namespace HandyControlDemo.UserControl;
|
||||||
|
|
||||||
public partial class MainContent : Avalonia.Controls.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
|
public partial class MainWindowContent : Avalonia.Controls.UserControl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControlDemo.UserControl;
|
namespace HandyControlDemo.UserControl;
|
||||||
|
|
||||||
public partial class BorderDemoCtl : Avalonia.Controls.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
|
public partial class BrushDemoCtl : Avalonia.Controls.UserControl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControlDemo.UserControl;
|
namespace HandyControlDemo.UserControl;
|
||||||
|
|
||||||
public partial class ButtonDemoCtl : Avalonia.Controls.UserControl
|
public partial class ButtonDemoCtl : Avalonia.Controls.UserControl
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControlDemo.UserControl;
|
namespace HandyControlDemo.UserControl;
|
||||||
|
|
||||||
public partial class RepeatButtonDemoCtl : Avalonia.Controls.UserControl
|
public partial class RepeatButtonDemoCtl : Avalonia.Controls.UserControl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
|
||||||
namespace HandyControlDemo.ViewModel;
|
namespace HandyControlDemo.ViewModel;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using HandyControlDemo.Service;
|
using HandyControlDemo.Service;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Layout;
|
using Avalonia.Layout;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace HandyControl.Data;
|
namespace HandyControl.Data;
|
||||||
|
|
||||||
public enum VisualWrapping
|
public enum VisualWrapping
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Layout;
|
using Avalonia.Layout;
|
||||||
|
|
||||||
namespace HandyControl.Data;
|
namespace HandyControl.Data;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// ReSharper disable InconsistentNaming
|
// ReSharper disable InconsistentNaming
|
||||||
namespace HandyControl.Data;
|
namespace HandyControl.Data;
|
||||||
|
|
||||||
public class ResourceToken
|
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.Controls")]
|
||||||
[assembly: XmlnsDefinition("https://handyorg.github.io/handycontrol", "HandyControl.Tools")]
|
[assembly: XmlnsDefinition("https://handyorg.github.io/handycontrol", "HandyControl.Tools")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Avalonia.Markup.Xaml;
|
using Avalonia.Markup.Xaml;
|
||||||
using Avalonia.Styling;
|
using Avalonia.Styling;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
|
|
||||||
namespace HandyControl.Tools;
|
namespace HandyControl.Tools;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user