public void RegisterSdkModel(SdkViewModel model) { // Register a viewmodel so it receives SDK updates var type = model.GetType(); this.UnregisterSdkModel(model); _sdkModels.Add(type, model); }
public void UnregisterSdkModel(SdkViewModel model) { // Unregister a viewmodel so it stops receiving SDK updates var type = model.GetType(); if (_sdkModels.ContainsKey(type)) { _sdkModels.Remove(type); } }