Convert remaining files to file-scoped namespace
This commit is contained in:
@@ -4,8 +4,7 @@ using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
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
|
||||
class ChangeNotifier : INotifyPropertyChanged
|
||||
@@ -16,4 +15,3 @@ namespace MayShow.Helpers
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace MayShow.ViewModels
|
||||
{
|
||||
namespace MayShow.ViewModels;
|
||||
|
||||
class BaseViewModel : ChangeNotifier
|
||||
{
|
||||
IChangeViewModel _viewModelChanger;
|
||||
@@ -44,4 +44,3 @@ namespace MayShow.ViewModels
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace MayShow.ViewModels
|
||||
{
|
||||
namespace MayShow.ViewModels;
|
||||
|
||||
class MainWindowViewModel : ChangeNotifier, IChangeViewModel
|
||||
{
|
||||
BaseViewModel _currentViewModel;
|
||||
@@ -47,4 +47,3 @@ namespace MayShow.ViewModels
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
using MayShow.Helpers;
|
||||
using MayShow.Models;
|
||||
|
||||
namespace MayShow.ViewModels
|
||||
{
|
||||
namespace MayShow.ViewModels;
|
||||
|
||||
class WarningDeleteItemViewModel : ChangeNotifier
|
||||
{
|
||||
ReportFile _file;
|
||||
@@ -28,4 +28,3 @@ namespace MayShow.ViewModels
|
||||
DialogHost.Close("DialogHost", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace MayShow.Views
|
||||
{
|
||||
namespace MayShow.Views;
|
||||
|
||||
public partial class AboutView : UserControl
|
||||
{
|
||||
public AboutView()
|
||||
@@ -36,4 +36,3 @@ namespace MayShow.Views
|
||||
LicenseTextBlock.Text = licenseText.Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace MayShow.Views
|
||||
{
|
||||
namespace MayShow.Views;
|
||||
|
||||
public partial class EditFile : UserControl
|
||||
{
|
||||
public EditFile()
|
||||
@@ -12,4 +12,3 @@ namespace MayShow.Views
|
||||
this.InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ using Avalonia.Input;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using MayShow.ViewModels;
|
||||
|
||||
namespace MayShow.Views
|
||||
{
|
||||
namespace MayShow.Views;
|
||||
|
||||
public partial class MainView : UserControl
|
||||
{
|
||||
public MainView()
|
||||
@@ -42,4 +42,3 @@ namespace MayShow.Views
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace MayShow.Views
|
||||
{
|
||||
namespace MayShow.Views;
|
||||
|
||||
public partial class WarningDeleteItem : UserControl
|
||||
{
|
||||
public WarningDeleteItem()
|
||||
@@ -12,4 +12,3 @@ namespace MayShow.Views
|
||||
this.InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user