Convert remaining files to file-scoped namespace

This commit is contained in:
2026-03-03 12:54:27 +09:00
parent 1efd9993bf
commit 478f67aa82
8 changed files with 153 additions and 162 deletions
+1 -3
View File
@@ -4,8 +4,7 @@ using System.ComponentModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Text; using System.Text;
namespace MayShow.Helpers namespace MayShow.Helpers;
{
// https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.7.2 // https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.7.2
class ChangeNotifier : INotifyPropertyChanged class ChangeNotifier : INotifyPropertyChanged
@@ -16,4 +15,3 @@ namespace MayShow.Helpers
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
} }
} }
}
+2 -3
View File
@@ -5,8 +5,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace MayShow.ViewModels namespace MayShow.ViewModels;
{
class BaseViewModel : ChangeNotifier class BaseViewModel : ChangeNotifier
{ {
IChangeViewModel _viewModelChanger; IChangeViewModel _viewModelChanger;
@@ -44,4 +44,3 @@ namespace MayShow.ViewModels
#endregion #endregion
} }
}
+2 -3
View File
@@ -4,8 +4,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
namespace MayShow.ViewModels namespace MayShow.ViewModels;
{
class MainWindowViewModel : ChangeNotifier, IChangeViewModel class MainWindowViewModel : ChangeNotifier, IChangeViewModel
{ {
BaseViewModel _currentViewModel; BaseViewModel _currentViewModel;
@@ -47,4 +47,3 @@ namespace MayShow.ViewModels
#endregion #endregion
} }
}
+2 -3
View File
@@ -2,8 +2,8 @@
using MayShow.Helpers; using MayShow.Helpers;
using MayShow.Models; using MayShow.Models;
namespace MayShow.ViewModels namespace MayShow.ViewModels;
{
class WarningDeleteItemViewModel : ChangeNotifier class WarningDeleteItemViewModel : ChangeNotifier
{ {
ReportFile _file; ReportFile _file;
@@ -28,4 +28,3 @@ namespace MayShow.ViewModels
DialogHost.Close("DialogHost", true); DialogHost.Close("DialogHost", true);
} }
} }
}
+2 -3
View File
@@ -5,8 +5,8 @@ using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
namespace MayShow.Views namespace MayShow.Views;
{
public partial class AboutView : UserControl public partial class AboutView : UserControl
{ {
public AboutView() public AboutView()
@@ -36,4 +36,3 @@ namespace MayShow.Views
LicenseTextBlock.Text = licenseText.Trim(); LicenseTextBlock.Text = licenseText.Trim();
} }
} }
}
+2 -3
View File
@@ -3,8 +3,8 @@ using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
namespace MayShow.Views namespace MayShow.Views;
{
public partial class EditFile : UserControl public partial class EditFile : UserControl
{ {
public EditFile() public EditFile()
@@ -12,4 +12,3 @@ namespace MayShow.Views
this.InitializeComponent(); this.InitializeComponent();
} }
} }
}
+2 -3
View File
@@ -5,8 +5,8 @@ using Avalonia.Input;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
using MayShow.ViewModels; using MayShow.ViewModels;
namespace MayShow.Views namespace MayShow.Views;
{
public partial class MainView : UserControl public partial class MainView : UserControl
{ {
public MainView() public MainView()
@@ -42,4 +42,3 @@ namespace MayShow.Views
} }
} }
} }
}
+2 -3
View File
@@ -3,8 +3,8 @@ using Avalonia;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Markup.Xaml; using Avalonia.Markup.Xaml;
namespace MayShow.Views namespace MayShow.Views;
{
public partial class WarningDeleteItem : UserControl public partial class WarningDeleteItem : UserControl
{ {
public WarningDeleteItem() public WarningDeleteItem()
@@ -12,4 +12,3 @@ namespace MayShow.Views
this.InitializeComponent(); this.InitializeComponent();
} }
} }
}