/// <summary> /// Adds the live store. /// </summary> /// <typeparam name="Id">The type of the d.</typeparam> /// <typeparam name="T"></typeparam> /// <param name="name">The name.</param> /// <param name="store">The store.</param> /// <param name="remoteId">The remote id.</param> /// <param name="subRemote">if set to <c>true</c> [sub remote].</param> public void AddLiveStore <Id, T>(String name, DextopObservableStore <Id, T> store, String remoteId = null, bool subRemote = true) where T : class { var meta = Context.ModelManager.GetModelMeta(typeof(T)); var liveStore = new DextopLiveStore(meta, store); AddLiveStore(name, liveStore, remoteId, subRemote); }
public LiveGridWindow() { store = new DextopObservableStore <string, LiveGridModel>(a => a.Ticker); #if DEBUG timer = new Timer(OnTimer, null, 100, 300); #else timer = new Timer(OnTimer, null, 100, 2000); #endif }
public LiveGridWindow() { store = new DextopObservableStore<string, LiveGridModel>(a => a.Ticker); #if DEBUG timer = new Timer(OnTimer, null, 100, 300); #else timer = new Timer(OnTimer, null, 100, 2000); #endif }
public LiveChartWindow() { store = new DextopObservableStore<string, LiveChartModel>(a => a.CPU); for (var i = 0; i < 4; i++) store.Set(new LiveChartModel { CPU = "CPU " + (i+1), Usage = 0 }); }
public LiveChartWindow() { store = new DextopObservableStore <string, LiveChartModel>(a => a.CPU); for (var i = 0; i < 4; i++) { store.Set(new LiveChartModel { CPU = "CPU " + (i + 1), Usage = 0 }); } }
public ChatWindow() { store = new DextopObservableStore <int, ChatLine>(a => a.Id); store.SetMany(lines); }
public ChatWindow() { store = new DextopObservableStore<int, ChatLine>(a => a.Id); store.SetMany(lines); }