diff --git a/src/App.axaml b/src/App.axaml index e5fae40..5af7411 100644 --- a/src/App.axaml +++ b/src/App.axaml @@ -1,11 +1,11 @@ diff --git a/src/App.axaml.cs b/src/App.axaml.cs index 90042c9..2936c5a 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -4,10 +4,10 @@ using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; using DialogHostAvalonia; -using ReceiptPDFBuilder; -using ReceiptPDFBuilder.ViewModels; +using MayShow; +using MayShow.ViewModels; -namespace ReceiptPDFBuilder; +namespace MayShow; public partial class App : Application { diff --git a/src/Helpers/ChangeNotifier.cs b/src/Helpers/ChangeNotifier.cs index d2310d6..d1ac2fb 100644 --- a/src/Helpers/ChangeNotifier.cs +++ b/src/Helpers/ChangeNotifier.cs @@ -4,7 +4,7 @@ using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text; -namespace ReceiptPDFBuilder.Helpers +namespace MayShow.Helpers { // https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.7.2 diff --git a/src/Helpers/Constants.cs b/src/Helpers/Constants.cs index 262529d..38c604d 100644 --- a/src/Helpers/Constants.cs +++ b/src/Helpers/Constants.cs @@ -1,7 +1,7 @@ using System; -namespace ReceiptPDFBuilder.Helpers; +namespace MayShow.Helpers; class Constants { diff --git a/src/Helpers/DataGridDropHandler.cs b/src/Helpers/DataGridDropHandler.cs index d0d0efc..7c6e426 100644 --- a/src/Helpers/DataGridDropHandler.cs +++ b/src/Helpers/DataGridDropHandler.cs @@ -3,10 +3,10 @@ using Avalonia.Controls; using Avalonia.Input; using Avalonia.VisualTree; using Avalonia.Xaml.Interactions.DragAndDrop; -using ReceiptPDFBuilder.Models; -using ReceiptPDFBuilder.ViewModels; +using MayShow.Models; +using MayShow.ViewModels; -namespace ReceiptPDFBuilder.Helpers; +namespace MayShow.Helpers; class DataGridDropHandler : BaseDataGridDropHandler { diff --git a/src/Helpers/ListExtensions.cs b/src/Helpers/ListExtensions.cs index 00bb4a5..9f9c074 100644 --- a/src/Helpers/ListExtensions.cs +++ b/src/Helpers/ListExtensions.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Threading; -namespace ReceiptPDFBuilders.Helpers; +namespace MayShows.Helpers; public static class ThreadSafeRandom { diff --git a/src/Helpers/SourceGenerationContext.cs b/src/Helpers/SourceGenerationContext.cs index 651ff6a..b370d61 100644 --- a/src/Helpers/SourceGenerationContext.cs +++ b/src/Helpers/SourceGenerationContext.cs @@ -1,7 +1,7 @@ using System.Text.Json.Serialization; -using ReceiptPDFBuilder.Models; +using MayShow.Models; -namespace ReceiptPDFBuilder.Helpers; +namespace MayShow.Helpers; [JsonSerializable(typeof(Settings))] [JsonSerializable(typeof(ReportFile))] diff --git a/src/Helpers/Utilities.cs b/src/Helpers/Utilities.cs index ac32ff5..37ddd41 100644 --- a/src/Helpers/Utilities.cs +++ b/src/Helpers/Utilities.cs @@ -5,7 +5,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using System.Text.RegularExpressions; -namespace ReceiptPDFBuilders.Helpers; +namespace MayShows.Helpers; class Utilities { diff --git a/src/Interfaces/IChangeViewModel.cs b/src/Interfaces/IChangeViewModel.cs index 79cd9c7..d992335 100644 --- a/src/Interfaces/IChangeViewModel.cs +++ b/src/Interfaces/IChangeViewModel.cs @@ -1,6 +1,6 @@ -using ReceiptPDFBuilder.ViewModels; +using MayShow.ViewModels; -namespace ReceiptPDFBuilder.Interfaces +namespace MayShow.Interfaces { interface IChangeViewModel { diff --git a/src/Interfaces/ITopLevelGrabber.cs b/src/Interfaces/ITopLevelGrabber.cs index 117180f..9624d49 100644 --- a/src/Interfaces/ITopLevelGrabber.cs +++ b/src/Interfaces/ITopLevelGrabber.cs @@ -1,6 +1,6 @@ using Avalonia.Controls; -namespace ReceiptPDFBuilder.Interfaces +namespace MayShow.Interfaces { interface ITopLevelGrabber { diff --git a/src/MainWindow.axaml b/src/MainWindow.axaml index 85b2aba..dfe33db 100644 --- a/src/MainWindow.axaml +++ b/src/MainWindow.axaml @@ -3,9 +3,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="ReceiptPDFBuilder.MainWindow" + x:Class="MayShow.MainWindow" Title="MayShow" - xmlns:vm="clr-namespace:ReceiptPDFBuilder.ViewModels" + xmlns:vm="clr-namespace:MayShow.ViewModels" xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia" x:DataType="vm:MainWindowViewModel" Width="800" diff --git a/src/MainWindow.axaml.cs b/src/MainWindow.axaml.cs index b44cf5e..7ef7402 100644 --- a/src/MainWindow.axaml.cs +++ b/src/MainWindow.axaml.cs @@ -1,8 +1,8 @@ using Avalonia.Controls; -using ReceiptPDFBuilder.Interfaces; -using ReceiptPDFBuilder.ViewModels; +using MayShow.Interfaces; +using MayShow.ViewModels; -namespace ReceiptPDFBuilder; +namespace MayShow; public partial class MainWindow : Window, ITopLevelGrabber { diff --git a/src/Models/PDFReport.cs b/src/Models/PDFReport.cs index c039f13..3b0b769 100644 --- a/src/Models/PDFReport.cs +++ b/src/Models/PDFReport.cs @@ -5,9 +5,9 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; -using ReceiptPDFBuilder.Helpers; +using MayShow.Helpers; -namespace ReceiptPDFBuilder.Models; +namespace MayShow.Models; class PDFReport : ChangeNotifier { diff --git a/src/Models/ReportFile.cs b/src/Models/ReportFile.cs index 2dcacdc..7e6dc36 100644 --- a/src/Models/ReportFile.cs +++ b/src/Models/ReportFile.cs @@ -1,9 +1,9 @@ using System; using System.IO; using System.Text.Json.Serialization; -using ReceiptPDFBuilder.Helpers; +using MayShow.Helpers; -namespace ReceiptPDFBuilder.Models; +namespace MayShow.Models; class ReportFile : ChangeNotifier { diff --git a/src/Models/Settings.cs b/src/Models/Settings.cs index 4690bb6..a627682 100644 --- a/src/Models/Settings.cs +++ b/src/Models/Settings.cs @@ -4,10 +4,10 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; -using ReceiptPDFBuilder.Helpers; -using ReceiptPDFBuilders.Helpers; +using MayShow.Helpers; +using MayShows.Helpers; -namespace ReceiptPDFBuilder.Models; +namespace MayShow.Models; class Settings : ChangeNotifier { @@ -34,7 +34,7 @@ class Settings : ChangeNotifier { var path = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), - "ReceiptPDFBuilder" + "ReceiptPDFBuilder" // legacy name for existing settings prior to app name change ); if (!Directory.Exists(path)) { diff --git a/src/Program.cs b/src/Program.cs index 1a3b33c..2bae6ff 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -1,7 +1,7 @@ using Avalonia; using System; -namespace ReceiptPDFBuilder; +namespace MayShow; class Program { diff --git a/src/ViewModels/AboutViewModel.cs b/src/ViewModels/AboutViewModel.cs index 8f9404f..7ff38d3 100644 --- a/src/ViewModels/AboutViewModel.cs +++ b/src/ViewModels/AboutViewModel.cs @@ -15,10 +15,10 @@ using MigraDoc.Rendering; using PdfSharp.Fonts; using PdfSharp.Pdf.IO; using PdfSharp.Snippets.Font; -using ReceiptPDFBuilder.Interfaces; -using ReceiptPDFBuilder.Models; +using MayShow.Interfaces; +using MayShow.Models; -namespace ReceiptPDFBuilder.ViewModels; +namespace MayShow.ViewModels; class AboutViewModel { diff --git a/src/ViewModels/BaseViewModel.cs b/src/ViewModels/BaseViewModel.cs index 1cdf405..bc5a82c 100644 --- a/src/ViewModels/BaseViewModel.cs +++ b/src/ViewModels/BaseViewModel.cs @@ -1,11 +1,11 @@ using Avalonia.Controls; -using ReceiptPDFBuilder.Helpers; -using ReceiptPDFBuilder.Interfaces; +using MayShow.Helpers; +using MayShow.Interfaces; using System; using System.Collections.Generic; using System.Text; -namespace ReceiptPDFBuilder.ViewModels +namespace MayShow.ViewModels { class BaseViewModel : ChangeNotifier { diff --git a/src/ViewModels/EditFileViewModel.cs b/src/ViewModels/EditFileViewModel.cs index 5383e5e..e28760f 100644 --- a/src/ViewModels/EditFileViewModel.cs +++ b/src/ViewModels/EditFileViewModel.cs @@ -15,10 +15,10 @@ using MigraDoc.Rendering; using PdfSharp.Fonts; using PdfSharp.Pdf.IO; using PdfSharp.Snippets.Font; -using ReceiptPDFBuilder.Interfaces; -using ReceiptPDFBuilder.Models; +using MayShow.Interfaces; +using MayShow.Models; -namespace ReceiptPDFBuilder.ViewModels; +namespace MayShow.ViewModels; class EditFileViewModel : BaseViewModel { diff --git a/src/ViewModels/MainViewModel.cs b/src/ViewModels/MainViewModel.cs index c067d03..3d3ce0e 100644 --- a/src/ViewModels/MainViewModel.cs +++ b/src/ViewModels/MainViewModel.cs @@ -16,12 +16,12 @@ using MigraDoc.Rendering; using PdfSharp.Fonts; using PdfSharp.Pdf.IO; using PdfSharp.Snippets.Font; -using ReceiptPDFBuilder.Helpers; -using ReceiptPDFBuilder.Interfaces; -using ReceiptPDFBuilder.Models; -using ReceiptPDFBuilders.Helpers; +using MayShow.Helpers; +using MayShow.Interfaces; +using MayShow.Models; +using MayShows.Helpers; -namespace ReceiptPDFBuilder.ViewModels; +namespace MayShow.ViewModels; class MainViewModel : BaseViewModel, IFontResolver { diff --git a/src/ViewModels/MainWindowViewModel.cs b/src/ViewModels/MainWindowViewModel.cs index 40904d9..88deedf 100644 --- a/src/ViewModels/MainWindowViewModel.cs +++ b/src/ViewModels/MainWindowViewModel.cs @@ -1,10 +1,10 @@ -using ReceiptPDFBuilder.Helpers; -using ReceiptPDFBuilder.Interfaces; +using MayShow.Helpers; +using MayShow.Interfaces; using System; using System.Collections.Generic; using System.Text; -namespace ReceiptPDFBuilder.ViewModels +namespace MayShow.ViewModels { class MainWindowViewModel : ChangeNotifier, IChangeViewModel { diff --git a/src/ViewModels/WarningDeleteItemModel.cs b/src/ViewModels/WarningDeleteItemModel.cs index cf45700..55eda08 100644 --- a/src/ViewModels/WarningDeleteItemModel.cs +++ b/src/ViewModels/WarningDeleteItemModel.cs @@ -1,8 +1,8 @@ using DialogHostAvalonia; -using ReceiptPDFBuilder.Helpers; -using ReceiptPDFBuilder.Models; +using MayShow.Helpers; +using MayShow.Models; -namespace ReceiptPDFBuilder.ViewModels +namespace MayShow.ViewModels { class WarningDeleteItemModel : ChangeNotifier { diff --git a/src/ViewModels/WarningViewModel.cs b/src/ViewModels/WarningViewModel.cs index 087b04a..823834d 100644 --- a/src/ViewModels/WarningViewModel.cs +++ b/src/ViewModels/WarningViewModel.cs @@ -2,7 +2,7 @@ using DialogHostAvalonia; -namespace ReceiptPDFBuilder.ViewModels; +namespace MayShow.ViewModels; class WarningViewModel { diff --git a/src/Views/AboutView.axaml b/src/Views/AboutView.axaml index f116199..3a5d94a 100644 --- a/src/Views/AboutView.axaml +++ b/src/Views/AboutView.axaml @@ -3,9 +3,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="ReceiptPDFBuilder.Views.AboutView" - xmlns:models="clr-namespace:ReceiptPDFBuilder.Models" - xmlns:vm="clr-namespace:ReceiptPDFBuilder.ViewModels" + x:Class="MayShow.Views.AboutView" + xmlns:models="clr-namespace:MayShow.Models" + xmlns:vm="clr-namespace:MayShow.ViewModels" xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia" x:DataType="vm:AboutViewModel"> diff --git a/src/Views/EditFile.axaml.cs b/src/Views/EditFile.axaml.cs index 2dd6c20..d866ba6 100644 --- a/src/Views/EditFile.axaml.cs +++ b/src/Views/EditFile.axaml.cs @@ -3,7 +3,7 @@ using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; -namespace ReceiptPDFBuilder.Views +namespace MayShow.Views { public partial class EditFile : UserControl { diff --git a/src/Views/MainView.axaml b/src/Views/MainView.axaml index 03120fc..e4796cd 100644 --- a/src/Views/MainView.axaml +++ b/src/Views/MainView.axaml @@ -3,11 +3,11 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" - x:Class="ReceiptPDFBuilder.Views.MainView" - xmlns:helpers="clr-namespace:ReceiptPDFBuilder.Helpers" - xmlns:models="clr-namespace:ReceiptPDFBuilder.Models" - xmlns:views="clr-namespace:ReceiptPDFBuilder.Views" - xmlns:vm="clr-namespace:ReceiptPDFBuilder.ViewModels" + x:Class="MayShow.Views.MainView" + xmlns:helpers="clr-namespace:MayShow.Helpers" + xmlns:models="clr-namespace:MayShow.Models" + xmlns:views="clr-namespace:MayShow.Views" + xmlns:vm="clr-namespace:MayShow.ViewModels" xmlns:progRing="clr-namespace:AvaloniaProgressRing;assembly=AvaloniaProgressRing" x:DataType="vm:MainViewModel"> - +