1 using SpeedportHybridControl.Data;
2 using SpeedportHybridControl.Implementations;
3 using SpeedportHybridControl.Model;
5 using System.Collections.Generic;
8 using System.Threading;
9 using System.Threading.Tasks;
11 namespace SpeedportHybridControl.PageModel
13 class InterfacePageModel : SuperViewModel
15 private DelegateCommand _reloadCommand;
16 private List<InterfaceList> _interfaceList;
17 private string _datetime;
19 public DelegateCommand ReloadCommand
21 get { return _reloadCommand; }
22 set { SetProperty(ref _reloadCommand, value); }
25 public List<InterfaceList> interfaceList
27 get { return _interfaceList; }
28 set { SetProperty(ref _interfaceList, value); }
31 public string datetime
33 get { return _datetime; }
34 set { SetProperty(ref _datetime, value); }
37 private void OnReloadCommandExecute()
39 new Thread(() => { SpeedportHybrid.initInterface(); }).Start();
42 public InterfacePageModel()
44 ReloadCommand = new DelegateCommand(new Action(OnReloadCommandExecute));