Advertisement
Guest User

Untitled

a guest
Jan 14th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement