コード例 #1
0
ファイル: Controller.cs プロジェクト: Timmeey86/EDTradingTool
 /// <summary>
 /// Registers an entity watcher which will from this point on be notified about any entity changes for its handled type.
 /// If you call this method after Initialize() you need to manually populate the current data to the entity watcher.
 /// </summary>
 /// <param name="entityWatcher">The entity watcher to add.</param>
 /// <typeparam name="T">The type of the entity watcher.</typeparam>
 public void RegisterEntityWatcher <T>(Core.IEntityWatcher <T> entityWatcher) where T : Core.IEntity
 {
     _entityWatcherStore.Add <T>(entityWatcher);
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: Timmeey86/EDTradingTool
 /// <summary>
 /// Unregisters an entity watcher so that it no longer receives entity notifications.
 /// </summary>
 /// <param name="entityWatcher">The entity watcher to add.</param>
 /// <typeparam name="T">The type of the entity watcher.</typeparam>
 public void UnregisterEntityWatcher <T>(Core.IEntityWatcher <T> entityWatcher) where T : Core.IEntity
 {
     _entityWatcherStore.Remove <T>(entityWatcher);
 }