Exemple #1
0
        public void RegisterSdkModel(SdkViewModel model)
        {
            // Register a viewmodel so it receives SDK updates
            var type = model.GetType();

            this.UnregisterSdkModel(model);
            _sdkModels.Add(type, model);
        }
Exemple #2
0
        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);
            }
        }