summaryrefslogtreecommitdiff
path: root/ViewModels/MainWindowViewModel.cs
blob: 802519051041fd69af876237ec109793354c5340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace east_auctioner.ViewModels;

using east_auctioner.Models;

public partial class MainWindowViewModel : ViewModelBase
{
    public string Greeting { get; } = "Welcome to Avalonia!";
    public BidItem[] Items { get; }

    private BidItem? _currentItem;
    public BidItem? CurrentItem
    {
        get { return _currentItem; }
        set { this.SetProperty(ref _currentItem, value); }
    }

    public MainWindowViewModel()
    {
        Items = [
            new BidItem { Title = "foo" },
            new BidItem { Title = "bar" },
            new BidItem { Title = "baz" },
        ];
    }
}