public ShellViewModel(IWindowManager windowManager, IEventAggregator eventAggregator, IBigStashClient deepfreezeClient) { this._windowManager = windowManager; this._eventAggregator = eventAggregator; this._deepfreezeClient = deepfreezeClient; this._eventAggregator.Subscribe(this); // initialize the _connectionTimer this._connectionTimer = new DispatcherTimer(); this._connectionTimer.Interval = new TimeSpan(0, 0, 5); this._connectionTimer.Tick += _connectionTimer_Tick; this._connectionTimer.Start(); }
public ActivityViewModel(IBigStashClient deepfreezeClient, IEventAggregator eventAggregator) { this._deepfreezeClient = deepfreezeClient; this._eventAggregator = eventAggregator; // get a new DispatcherTimer on the UI Thread. this._fetchNotificationsTimer = new DispatcherTimer(new TimeSpan(0, INTERVAL_ACTIVITY_REFRESH, 0), DispatcherPriority.Normal, Tick, Application.Current.Dispatcher); this._fetchNotificationsTimer.Start(); this._fetchNotificationsAfterScrollToEndTimer = new DispatcherTimer(new TimeSpan(0, 0, 0, 0, INTERVAL_ACTIVITY_SCROLL_FETCH), DispatcherPriority.Normal, ScrollTick, Application.Current.Dispatcher); this._fetchNotificationsAfterScrollToEndTimer.Stop(); }
public LoginViewModel(IEventAggregator eventAggregator, IBigStashClient deepfreezeClient) { this._eventAggregator = eventAggregator; this._deepfreezeClient = deepfreezeClient; }
public UploadManagerViewModel(IEventAggregator eventAggregator, IBigStashClient deepfreezeClient) { this._eventAggregator = eventAggregator; this._deepfreezeClient = deepfreezeClient; }
private void ResetDebugServerBaseAddress(IBigStashClient client) { client.Settings.ApiEndpoint = Properties.Settings.Default.ServerBaseAddress; }
private void ResetDebugServerBaseAddress(IBigStashClient client) { client.Settings.ApiEndpoint = Properties.Settings.Default.ServerBaseAddress; }