private bool?ConvertStatus(ComboBoxItem filterStatusRaw) { /*switch (filterStatusRaw.ToString()) * { * case FilterComboBoxActive.ToString(): * return true; * case FilterComboBoxInactive.ToString(): * return false; * default: * return false; * }*/ if (filterStatusRaw.Equals(FilterComboBoxActive)) { return(true); } else if (filterStatusRaw.Equals(FilterComboBoxInactive)) { return(false); } return(false); }