public IFormattedValue VisitChosenFromListViewModel(IChosenFromListValueViewModel chosenFromListValueViewModel) { var chosenFromListValue = (chosenFromListValueViewModel as IEditableValueViewModel)?.FormattedValue as IChosenFromListValue; chosenFromListValue.SelectedItem = chosenFromListValueViewModel.SelectedItem; return(chosenFromListValue); }
public Result VisitChosenFromListViewModel(IChosenFromListValueViewModel chosenFromListValueViewModel) { var copyFrom = _editableValueViewModel as IChosenFromListValueViewModel; if (copyFrom == null) { return(Result.Create(false)); } chosenFromListValueViewModel.SelectedItem = copyFrom.SelectedItem; return(Result.Create(true)); }
public Result VisitChosenFromListViewModel(IChosenFromListValueViewModel chosenFromListValueViewModel) { try { chosenFromListValueViewModel.SetValue((_formattedValue as IChosenFromListValue).SelectedItem); return(Result.Create(true)); } catch (Exception e) { Console.WriteLine(e); throw; } }
public bool VisitChosenFromListViewModel(IChosenFromListValueViewModel chosenFromListValueViewModel) { return((_baseFormattedValueViewModel as IChosenFromListValueViewModel).SelectedItem != chosenFromListValueViewModel.SelectedItem); }
public bool VisitChosenFromListViewModel(IChosenFromListValueViewModel chosenFromListValueViewModel) { throw new NotImplementedException(); }