public RemoteStorage(App app, GradeHttpClient httpClient, SelectorViewModel selectorViewModel, GlobalState state) { App = app; HttpClient = httpClient; SelectorViewModel = selectorViewModel; State = state; }
public SelectorViewModel(App app, GradeHttpClient httpClient, GlobalState state) { App = app; HttpClient = httpClient; State = state; timer = new DispatcherTimer(DispatcherPriority.ApplicationIdle, App.Dispatcher) { Interval = TimeSpan.FromMinutes(1) }; timer.Tick += (o, e) => FetchData(); FetchData(); }