File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
mcs/class/System.Windows.Forms/System.Windows.Forms Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,9 @@ internal ToolTipWindow(Control owner = null) {
94
94
} else
95
95
SetStyle ( ControlStyles . Opaque , true ) ;
96
96
97
- if ( owner == null )
98
- {
97
+ if ( owner == null ) {
99
98
SetTopLevel ( true ) ;
100
- }
101
- else
102
- {
99
+ } else {
103
100
SetTopLevel ( false ) ;
104
101
owner . Controls . Add ( this ) ;
105
102
}
@@ -321,7 +318,6 @@ public ToolTip(Control owner = null) {
321
318
tooltip_window . Draw += new DrawToolTipEventHandler ( tooltip_window_Draw ) ;
322
319
tooltip_window . Popup += new PopupEventHandler ( tooltip_window_Popup ) ;
323
320
324
-
325
321
// UIA Framework: Static event handlers
326
322
tooltip_window . UnPopup += delegate ( object sender , PopupEventArgs args ) {
327
323
OnUnPopup ( args ) ;
@@ -331,8 +327,8 @@ public ToolTip(Control owner = null) {
331
327
timer = new Timer ( ) ;
332
328
timer . Enabled = false ;
333
329
timer . Tick += new EventHandler ( timer_Tick ) ;
334
- }
335
330
331
+ }
336
332
337
333
338
334
#region UIA Framework: Events, Delegates and Methods
Original file line number Diff line number Diff line change @@ -2229,19 +2229,14 @@ private void MouseLeftItem (TreeNode item)
2229
2229
tooltip_currently_showing = null ;
2230
2230
}
2231
2231
2232
- private ToolTip ToolTipWindow
2233
- {
2234
- get
2235
- {
2232
+ private ToolTip ToolTipWindow {
2233
+ get {
2236
2234
if ( tooltip_window == null )
2237
- {
2238
2235
tooltip_window = new ToolTip ( this ) ;
2239
- }
2240
-
2236
+
2241
2237
return tooltip_window ;
2242
2238
}
2243
2239
}
2244
-
2245
2240
#endregion
2246
2241
2247
2242
#endregion // Internal & Private Methods and Properties
You can’t perform that action at this time.
0 commit comments