diff --git a/src/SongProcessor.UI/SongProcessor.UI.csproj b/src/SongProcessor.UI/SongProcessor.UI.csproj index ce331bf..69d5578 100644 --- a/src/SongProcessor.UI/SongProcessor.UI.csproj +++ b/src/SongProcessor.UI/SongProcessor.UI.csproj @@ -1,12 +1,27 @@  WinExe + + copyused + true cirno_at_computer_pTB_icon.ico + + + + + + + + @@ -17,29 +32,4 @@ - - - - %(Filename) - - - - Designer - - - - - - MSBuild:Compile - - - MSBuild:Compile - - - MSBuild:Compile - - - MSBuild:Compile - - diff --git a/src/SongProcessor.UI/ViewModels/MainViewModel.cs b/src/SongProcessor.UI/ViewModels/MainViewModel.cs index 6364629..8e3350b 100644 --- a/src/SongProcessor.UI/ViewModels/MainViewModel.cs +++ b/src/SongProcessor.UI/ViewModels/MainViewModel.cs @@ -1,7 +1,5 @@ using Avalonia.Input.Platform; -using DynamicData.Binding; - using ReactiveUI; using SongProcessor.FFmpeg; diff --git a/src/SongProcessor.UI/Views/AddView.axaml.cs b/src/SongProcessor.UI/Views/AddView.axaml.cs index c25670f..f1509e2 100644 --- a/src/SongProcessor.UI/Views/AddView.axaml.cs +++ b/src/SongProcessor.UI/Views/AddView.axaml.cs @@ -1,17 +1,13 @@ -using Avalonia.Markup.Xaml; -using Avalonia.ReactiveUI; +using Avalonia.ReactiveUI; using SongProcessor.UI.ViewModels; namespace SongProcessor.UI.Views; -public sealed class AddView : ReactiveUserControl +public partial class AddView : ReactiveUserControl { public AddView() { InitializeComponent(); } - - private void InitializeComponent() - => AvaloniaXamlLoader.Load(this); } \ No newline at end of file diff --git a/src/SongProcessor.UI/Views/EditView.axaml.cs b/src/SongProcessor.UI/Views/EditView.axaml.cs index 3ea7b8a..ea56fb0 100644 --- a/src/SongProcessor.UI/Views/EditView.axaml.cs +++ b/src/SongProcessor.UI/Views/EditView.axaml.cs @@ -1,17 +1,13 @@ -using Avalonia.Markup.Xaml; -using Avalonia.ReactiveUI; +using Avalonia.ReactiveUI; using SongProcessor.UI.ViewModels; namespace SongProcessor.UI.Views; -public sealed class EditView : ReactiveUserControl +public partial class EditView : ReactiveUserControl { public EditView() { InitializeComponent(); } - - private void InitializeComponent() - => AvaloniaXamlLoader.Load(this); } \ No newline at end of file diff --git a/src/SongProcessor.UI/Views/MainWindow.axaml.cs b/src/SongProcessor.UI/Views/MainWindow.axaml.cs index 40f147e..7f8eff9 100644 --- a/src/SongProcessor.UI/Views/MainWindow.axaml.cs +++ b/src/SongProcessor.UI/Views/MainWindow.axaml.cs @@ -1,17 +1,13 @@ -using Avalonia.Markup.Xaml; -using Avalonia.ReactiveUI; +using Avalonia.ReactiveUI; using SongProcessor.UI.ViewModels; namespace SongProcessor.UI.Views; -public sealed class MainWindow : ReactiveWindow +public partial class MainWindow : ReactiveWindow { public MainWindow() { InitializeComponent(); } - - private void InitializeComponent() - => AvaloniaXamlLoader.Load(this); } \ No newline at end of file diff --git a/src/SongProcessor.UI/Views/MessageBox.axaml.cs b/src/SongProcessor.UI/Views/MessageBox.axaml.cs index da9a7db..896fd3d 100644 --- a/src/SongProcessor.UI/Views/MessageBox.axaml.cs +++ b/src/SongProcessor.UI/Views/MessageBox.axaml.cs @@ -1,11 +1,10 @@ using Avalonia.Controls; -using Avalonia.Markup.Xaml; using SongProcessor.UI.ViewModels; namespace SongProcessor.UI.Views; -public sealed class MessageBox : Window +public partial class MessageBox : Window { public MessageBox() { @@ -23,7 +22,4 @@ public static Task ShowAsync( Focusable = true, }.ShowDialog(window); } - - private void InitializeComponent() - => AvaloniaXamlLoader.Load(this); } \ No newline at end of file diff --git a/src/SongProcessor.UI/Views/SongView.axaml.cs b/src/SongProcessor.UI/Views/SongView.axaml.cs index 69b43d9..6893019 100644 --- a/src/SongProcessor.UI/Views/SongView.axaml.cs +++ b/src/SongProcessor.UI/Views/SongView.axaml.cs @@ -1,13 +1,11 @@ -using Avalonia.Controls; -using Avalonia.Input; -using Avalonia.Markup.Xaml; +using Avalonia.Input; using Avalonia.ReactiveUI; using SongProcessor.UI.ViewModels; namespace SongProcessor.UI.Views; -public sealed class SongView : ReactiveUserControl +public partial class SongView : ReactiveUserControl { public SongView() { @@ -21,7 +19,4 @@ public void OnKeyDown(object sender, KeyEventArgs e) ViewModel?.Load?.Execute(); } } - - private void InitializeComponent() - => AvaloniaXamlLoader.Load(this); } \ No newline at end of file