0bc82dc6b5
- You can now open a directory - The current filenames and previews are now displayed in the listboxes - Added method pipeline for updating the lists (OpenDirectory -> Filter -> Preview)
21 lines
662 B
C#
21 lines
662 B
C#
using System;
|
|
|
|
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>();
|
|
}
|
|
}
|