File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
System.Windows.Forms.Design/src/System/Windows/Forms/Design
System.Windows.Forms/src/System/Windows/Forms Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ private void UpdateControlVisibility(FormatTypeClass formatType)
261261 }
262262
263263 tableLayoutPanel1 . SuspendLayout ( ) ;
264- secondRowLabel . Text = "" ;
264+ secondRowLabel . Text = string . Empty ;
265265
266266 // process the decimalPlacesLabelVisible
267267 if ( formatType . DropDownVisible )
@@ -315,14 +315,7 @@ private void UpdateControlVisibility(FormatTypeClass formatType)
315315 dateTimeFormatsListBox . Visible = false ;
316316 }
317317
318- if ( secondRowLabel . Text == "" )
319- {
320- secondRowLabel . Visible = false ;
321- }
322- else
323- {
324- secondRowLabel . Visible = true ;
325- }
318+ secondRowLabel . Visible = secondRowLabel . Text . Length > 0 ;
326319
327320 tableLayoutPanel1 . ResumeLayout ( true /*performLayout*/ ) ;
328321 }
Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ public Uri Url
611611 }
612612 set
613613 {
614- if ( value != null && value . ToString ( ) == "" )
614+ if ( value != null && value . ToString ( ) . Length == 0 )
615615 {
616616 value = null ;
617617 }
You can’t perform that action at this time.
0 commit comments