52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using BodyshopUploader.Utils.Growls;
|
|
using BodyshopUploader.Models;
|
|
|
|
namespace BodyshopUploader.ViewModels
|
|
{
|
|
public partial class MainViewModel : BaseViewModel
|
|
{
|
|
public GrowlNotification Growler;
|
|
|
|
private ObservableCollection<Monitor> _monitoringPaths = new ObservableCollection<Monitor>();
|
|
public ObservableCollection<Monitor> MonitoringPaths
|
|
{
|
|
get { return _monitoringPaths; }
|
|
set { SetProperty(ref _monitoringPaths, value); }
|
|
}
|
|
|
|
private ObservableCollection<Bodyshop> _shopData;
|
|
public ObservableCollection<Bodyshop> ShopData
|
|
{
|
|
get { return _shopData; }
|
|
set { SetProperty(ref _shopData, value); }
|
|
}
|
|
|
|
private int _progress;
|
|
public int Progress
|
|
{
|
|
get { return _progress; }
|
|
set { SetProperty(ref _progress, value); }
|
|
}
|
|
|
|
private bool _indeterminateLoading;
|
|
public bool IndeterminateLoading
|
|
{
|
|
get { return _indeterminateLoading; }
|
|
set { SetProperty(ref _indeterminateLoading, value); }
|
|
}
|
|
|
|
private Bodyshop _activeShop;
|
|
public Bodyshop ActiveShop
|
|
{
|
|
get { return _activeShop; }
|
|
set { SetProperty(ref _activeShop, value); Task.Run(async () => await SetActiveBodyshop()); }
|
|
}
|
|
}
|
|
}
|