Changeset 1789
- Timestamp:
- 2/10/2010 2:37:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/CodeReview/Eraser.Util/Localisation.cs
r1778 r1789 80 80 public static bool IsRightToLeft(Control control) 81 81 { 82 if (control == null)83 throw new ArgumentNullException("control");84 85 82 while (control != null) 86 83 { … … 95 92 break; 96 93 } 94 } 95 96 if (Application.OpenForms.Count > 0) 97 { 98 return IsRightToLeft(Application.OpenForms[0]); 99 } 100 else 101 { 102 using (Form form = new Form()) 103 return IsRightToLeft(form); 97 104 } 98 105 }
Note: See TracChangeset
for help on using the changeset viewer.
