public void Handle([NotNull] MillersChangedEvent message) { Millers = message.Millers; SelectedMiller = Millers.FirstOrDefault(); NotifyOfPropertyChange(() => Millers); }
public void Handle(FarmChangedEvent message) { FarmId = message.FarmMillerDto.FarmId; FieldsCode = message.FarmMillerDto.FieldsCode; FarmName = message.FarmMillerDto.FarmName; Harvested = message.FarmMillerDto.Harvested; FarmType = message.FarmMillerDto.FarmType; MillerId = message.FarmMillerDto.MillerId; MillerName = message.FarmMillerDto.MillerName; SelectedMiller = Millers.FirstOrDefault(x => x.Id == MillerId); SelectedAvailableFarmType = Enum.GetName(typeof(FarmType), FarmType); NotifyOfPropertyChange(""); }