private void LoadDefaults() { FilterColumn column = new FilterColumn(); var list = column.ToDictionary().Select(x => NSObject.FromObject(x.Value)).ToArray(); ColumnComboBox.Add(list); SetDeleteButtonStatus(); SetAddButtonStatus(); SetUpdateButtonStatus(); _originalFilters = new FilterCriteriaDto[Filters.Count]; Filters.CopyTo(_originalFilters, 0); RefreshGrid(Filters); }
private void LoadDefaults() { FilterColumn column = new FilterColumn(); var dict = column.ToDictionary(); var columns = dict.Select(x => new ComboBoxItem { Value = x.Key, Display = x.Value }).ToList(); cbColumn.DataSource = columns; cbColumn.DisplayMember = "Display"; cbColumn.ValueMember = "Value"; SetDeleteButtonStatus(); SetAddButtonStatus(); SetUpdateButtonStatus(); _originalFilters = new FilterCriteriaDto[Filters.Count]; Filters.CopyTo(_originalFilters, 0); RefreshGrid(Filters); }
public void to_dictionary_returns_empty_enumeration() { theColumn.ToDictionary().Any().ShouldBeFalse(); }