Skip to content

Commit

Permalink
Rename Patterns class to SubfolderProcessing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DineshSolanki committed Jul 8, 2024
1 parent 9307438 commit 9b74507
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion FoliCon/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry)
containerRegistry.RegisterDialog<ApiConfiguration, ApiConfigurationViewModel>("ApiConfig");
containerRegistry.RegisterDialog<CustomIconControl, CustomIconControlViewModel>("CustomIcon");
containerRegistry.RegisterDialog<PosterIconConfig, PosterIconConfigViewModel>("PosterIconConfig");
containerRegistry.RegisterDialog<Patterns, PatternsViewModel>("SubfolderProcessingConfig");
containerRegistry.RegisterDialog<SubfolderProcessing, SubfolderProcessingViewModel>("SubfolderProcessingConfig");
containerRegistry.RegisterDialog<AboutBox, AboutBoxViewModel>("AboutBox");
containerRegistry.RegisterDialog<PosterPicker, PosterPickerViewModel>("PosterPicker");
containerRegistry.RegisterDialog<Previewer, PreviewerViewModel>("Previewer");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pattern> _patterns;
private bool _subfolderProcessingEnabled;
Expand All @@ -37,7 +37,7 @@ public bool SubfolderProcessingEnabled
public DelegateCommand<Pattern> RemoveCommand { get; }

#endregion
public PatternsViewModel()
public SubfolderProcessingViewModel()
{
AddCommand = new DelegateCommand<string>(AddPattern);
RemoveCommand = new DelegateCommand<Pattern>(RemovePattern);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="FoliCon.Views.Patterns"
<UserControl x:Class="FoliCon.Views.SubfolderProcessing"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
Expand All @@ -12,7 +12,7 @@
mc:Ignorable="d"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
prism:ViewModelLocator.AutoWireViewModel="True"
d:DataContext="{d:DesignInstance viewModels:PatternsViewModel}">
d:DataContext="{d:DesignInstance viewModels:SubfolderProcessingViewModel}">
<UserControl.Resources>
<convertor:RegexValidationConverter x:Key="RegexValidationConverter"/>
<hc:Boolean2BooleanReConverter x:Key="InverseBooleanConverter"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace FoliCon.Views
/// <summary>
/// Interaction logic for Patterns
/// </summary>
public partial class Patterns
public partial class SubfolderProcessing
{
public Patterns()
public SubfolderProcessing()
{
InitializeComponent();
}
Expand Down

0 comments on commit 9b74507

Please sign in to comment.