void Instance_OnSourceChanged(Source newSource) { _source = newSource; if (newSource != null) { _playerModule = Domain.PresentationShow.ShowClient.ShowClient.Instance.GetPlayerModule(newSource.GetType()); } FillCommandList(); FireListChanged(); }
void Instance_OnDeviceChanged(Device newDevice) { _device = newDevice; if (_device != null) { _playerModule = ShowClient.Instance.GetPlayerModule(_device.Type.GetType()); } FillCommandList(); FireListChanged(); }
public CreateUserViewModel() { _module = new PlayerModule(); TryRegister = new RelayCommand(TryAddPlayer); }
public UpdateUserUCViewModel() { playerRepository = new PlayerRepository(); UpdateUserCommand = new RelayCommand(UpdateUser); _module = new PlayerModule(); }