From 9b7450726a7210609a859caf112dc88775eda6ab Mon Sep 17 00:00:00 2001 From: Dinesh Solanki <15937452+dineshsolanki@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:16:21 +0530 Subject: [PATCH] Rename Patterns class to SubfolderProcessing The Patterns class and its related files have been renamed to SubfolderProcessing to better reflect its functionality. Changes include updates to class names, file names, constructor functions, and associated ViewModel references. --- FoliCon/App.xaml.cs | 2 +- ...PatternsViewModel.cs => SubfolderProcessingViewModel.cs} | 6 +++--- FoliCon/Views/{Patterns.xaml => SubfolderProcessing.xaml} | 4 ++-- .../Views/{Patterns.xaml.cs => SubfolderProcessing.xaml.cs} | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) rename FoliCon/ViewModels/{PatternsViewModel.cs => SubfolderProcessingViewModel.cs} (93%) rename FoliCon/Views/{Patterns.xaml => SubfolderProcessing.xaml} (97%) rename FoliCon/Views/{Patterns.xaml.cs => SubfolderProcessing.xaml.cs} (71%) diff --git a/FoliCon/App.xaml.cs b/FoliCon/App.xaml.cs index ecc4788..908a4c8 100644 --- a/FoliCon/App.xaml.cs +++ b/FoliCon/App.xaml.cs @@ -37,7 +37,7 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry) containerRegistry.RegisterDialog("ApiConfig"); containerRegistry.RegisterDialog("CustomIcon"); containerRegistry.RegisterDialog("PosterIconConfig"); - containerRegistry.RegisterDialog("SubfolderProcessingConfig"); + containerRegistry.RegisterDialog("SubfolderProcessingConfig"); containerRegistry.RegisterDialog("AboutBox"); containerRegistry.RegisterDialog("PosterPicker"); containerRegistry.RegisterDialog("Previewer"); diff --git a/FoliCon/ViewModels/PatternsViewModel.cs b/FoliCon/ViewModels/SubfolderProcessingViewModel.cs similarity index 93% rename from FoliCon/ViewModels/PatternsViewModel.cs rename to FoliCon/ViewModels/SubfolderProcessingViewModel.cs index ab7094f..e998eb6 100644 --- a/FoliCon/ViewModels/PatternsViewModel.cs +++ b/FoliCon/ViewModels/SubfolderProcessingViewModel.cs @@ -6,13 +6,13 @@ namespace FoliCon.ViewModels; -public class PatternsViewModel : BindableBase, IDialogAware +public class SubfolderProcessingViewModel : BindableBase, IDialogAware { #region Variables private static readonly NLog.Logger Logger = LogManager.GetCurrentClassLogger(); - public string Title => LangProvider.GetLang("Patterns"); + public string Title => LangProvider.GetLang("SubfolderProcessing"); private ObservableCollection _patterns; private bool _subfolderProcessingEnabled; @@ -37,7 +37,7 @@ public bool SubfolderProcessingEnabled public DelegateCommand RemoveCommand { get; } #endregion - public PatternsViewModel() + public SubfolderProcessingViewModel() { AddCommand = new DelegateCommand(AddPattern); RemoveCommand = new DelegateCommand(RemovePattern); diff --git a/FoliCon/Views/Patterns.xaml b/FoliCon/Views/SubfolderProcessing.xaml similarity index 97% rename from FoliCon/Views/Patterns.xaml rename to FoliCon/Views/SubfolderProcessing.xaml index 005fc09..3492ff4 100644 --- a/FoliCon/Views/Patterns.xaml +++ b/FoliCon/Views/SubfolderProcessing.xaml @@ -1,4 +1,4 @@ - + d:DataContext="{d:DesignInstance viewModels:SubfolderProcessingViewModel}"> diff --git a/FoliCon/Views/Patterns.xaml.cs b/FoliCon/Views/SubfolderProcessing.xaml.cs similarity index 71% rename from FoliCon/Views/Patterns.xaml.cs rename to FoliCon/Views/SubfolderProcessing.xaml.cs index b83dc66..8a798e2 100644 --- a/FoliCon/Views/Patterns.xaml.cs +++ b/FoliCon/Views/SubfolderProcessing.xaml.cs @@ -5,9 +5,9 @@ namespace FoliCon.Views /// /// Interaction logic for Patterns /// - public partial class Patterns + public partial class SubfolderProcessing { - public Patterns() + public SubfolderProcessing() { InitializeComponent(); }