private void MoveSelectedLeft() { if (CurrentField != null) { FieldsSelected.Add(CurrentField); Fields.Remove(CurrentField); OnPropertyChanged("FieldsSelected"); OnPropertyChanged("Fields"); if (Fields.Count > 0) { CurrentField = Fields[0]; } } }
private void MoveSelectedRight() { if (CurrentFieldSelected != null) { Fields.Add(CurrentFieldSelected); FieldsSelected.Remove(CurrentFieldSelected); OnPropertyChanged("NomenclatureFieldsSelected"); OnPropertyChanged("NomenclatureFields"); if (FieldsSelected.Count > 0) { CurrentFieldSelected = FieldsSelected[0]; } } }
public void UpdateScatter() { GetScatteredData(FieldsSelected.Where(b => b.IsSelected).Select(a => a.Name).ToArray()); }