Guest User

Untitled

a guest
Jan 14th, 2020
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void UpdateSelectedValue()
  2.     {
  3. #if VS2008
  4.       string newValue = String.Join( Delimiter, SelectedItems.Cast<object>().Select( x => GetItemValue( x ).ToString() ).ToArray() );
  5. #else
  6.       string newValue = String.Join( Delimiter, SelectedItems.Cast<object>().Select( x => GetItemValue( x ) ) );
  7. #endif
  8.       if( String.IsNullOrEmpty( SelectedValue ) || !SelectedValue.Equals( newValue ) )
  9.       {
  10.         _ignoreSelectedValueChanged = true;
  11.         SelectedValue = newValue;
  12.         _ignoreSelectedValueChanged = false;
  13.       }
  14.     }
RAW Paste Data