bfr/BFR/MainWindowUIProperties.cs
adroslice e671fd4185 Implemented filtering
- Also an additional extension method for later
2019-11-14 20:42:25 +01:00

25 lines
894 B
C#

using Avalonia;
using Avalonia.Collections;
using Avalonia.Controls;
using BFR.DataModels;
namespace BFR
{
public partial class MainWindow : Window
{
private readonly AvaloniaProperty<string> workingDirectoryProperty =
AvaloniaProperty.Register<MainWindow, string>(nameof(WorkingDirectory));
public string WorkingDirectory { get => GetValue(workingDirectoryProperty); set => SetValue(workingDirectoryProperty, value); }
public AvaloniaList<FileModel> AllFiles { get; } = new AvaloniaList<FileModel>();
public AvaloniaList<FileModel> Files { get; } = new AvaloniaList<FileModel>();
// Filters
public string FilterExtension { get; set; } = "";
public string FilterPattern { get; set; } = "";
public bool FilterFullName { get; set; } = false;
public bool FilterRegex { get; set; } = false;
}
}