private void Selector_OnSelected(object sender, RoutedEventArgs e) { if (_vm.SelectedObj == null) { return; } InstanceControl.UpdateControl(_vm.SelectedObj, _dataContext.GetListValuesByType); InstanceControl.Btn2Cmd = _dataContext.GetSavingMethodByType(_vm.SelectedObj.GetType().BaseType); }