Skip to content

Commit

Permalink
调整文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
mujianwu committed Aug 2, 2024
1 parent 6ca3631 commit 9a30e4a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<UserControl x:Class="UotanToolbox.Features.Dashboard.DashboardView"
<UserControl x:Class="UotanToolbox.Features.Basicflash.BasicflashView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dashboard="clr-namespace:UotanToolbox.Features.Dashboard"
xmlns:basicflash="clr-namespace:UotanToolbox.Features.Basicflash"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:suki="clr-namespace:SukiUI.Controls;assembly=SukiUI"
xmlns:assets="clr-namespace:UotanToolbox.Assets;assembly=UotanToolbox"
xmlns:theme="clr-namespace:SukiUI.Theme;assembly=SukiUI"
d:DesignHeight="800"
d:DesignWidth="1024"
x:DataType="dashboard:DashboardViewModel"
x:DataType="basicflash:BasicflashViewModel"
mc:Ignorable="d">

<WrapPanel Margin="15"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
using UotanToolbox.Common.PatchHelper;
using UotanToolbox.Features.Components;

namespace UotanToolbox.Features.Dashboard;
namespace UotanToolbox.Features.Basicflash;

public partial class DashboardView : UserControl
public partial class BasicflashView : UserControl
{
private static string GetTranslation(string key) => FeaturesHelper.GetTranslation(key);
public AvaloniaList<string> SimpleUnlock = ["oem unlock", "oem unlock-go", "flashing unlock", "flashing unlock_critical"];
public AvaloniaList<string> Arch = ["aarch64", "armeabi", "X86-64", "X86"];

public DashboardView()
public BasicflashView()
{
InitializeComponent();
SimpleContent.ItemsSource = SimpleUnlock;
Expand Down
12 changes: 12 additions & 0 deletions UotanToolbox/Features/Basicflash/BasicflashViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Material.Icons;
using UotanToolbox.Common;

namespace UotanToolbox.Features.Basicflash;

public partial class BasicflashViewModel : MainPageBase
{
private static string GetTranslation(string key) => FeaturesHelper.GetTranslation(key);
public BasicflashViewModel() : base(GetTranslation("Sidebar_Basicflash"), MaterialIconKind.CableData, -1000)
{
}
}
12 changes: 0 additions & 12 deletions UotanToolbox/Features/Dashboard/DashboardViewModel.cs

This file was deleted.

7 changes: 5 additions & 2 deletions UotanToolbox/UotanToolbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Features\Appmgr\DashboardView.axaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
<Compile Update="Features\Appmgr\AppmgrView.axaml.cs">
<DependentUpon>AppmgrView.axaml</DependentUpon>
</Compile>
<Compile Update="Features\Basicflash\BasicflashView.axaml.cs">
<DependentUpon>BasicflashView.axaml</DependentUpon>
</Compile>
<Compile Update="Features\Components\ErrorDialog.axaml.cs">
<DependentUpon>ErrorDialog.axaml</DependentUpon>
Expand Down

0 comments on commit 9a30e4a

Please sign in to comment.