Skip to content

Commit 417ddca

Browse files
Correct the code formatting
1 parent 2ddb5a0 commit 417ddca

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

mcs/class/System.Windows.Forms/System.Windows.Forms/ToolTip.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,9 @@ internal ToolTipWindow(Control owner = null) {
9494
} else
9595
SetStyle (ControlStyles.Opaque, true);
9696

97-
if (owner == null)
98-
{
97+
if (owner == null) {
9998
SetTopLevel (true);
100-
}
101-
else
102-
{
99+
} else {
103100
SetTopLevel (false);
104101
owner.Controls.Add(this);
105102
}
@@ -321,7 +318,6 @@ public ToolTip(Control owner = null) {
321318
tooltip_window.Draw += new DrawToolTipEventHandler (tooltip_window_Draw);
322319
tooltip_window.Popup += new PopupEventHandler (tooltip_window_Popup);
323320

324-
325321
// UIA Framework: Static event handlers
326322
tooltip_window.UnPopup += delegate (object sender, PopupEventArgs args) {
327323
OnUnPopup (args);
@@ -331,8 +327,8 @@ public ToolTip(Control owner = null) {
331327
timer = new Timer();
332328
timer.Enabled = false;
333329
timer.Tick +=new EventHandler(timer_Tick);
334-
}
335330

331+
}
336332

337333

338334
#region UIA Framework: Events, Delegates and Methods

mcs/class/System.Windows.Forms/System.Windows.Forms/TreeView.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,19 +2229,14 @@ private void MouseLeftItem (TreeNode item)
22292229
tooltip_currently_showing = null;
22302230
}
22312231

2232-
private ToolTip ToolTipWindow
2233-
{
2234-
get
2235-
{
2232+
private ToolTip ToolTipWindow {
2233+
get {
22362234
if (tooltip_window == null)
2237-
{
22382235
tooltip_window = new ToolTip(this);
2239-
}
2240-
2236+
22412237
return tooltip_window;
22422238
}
22432239
}
2244-
22452240
#endregion
22462241

22472242
#endregion // Internal & Private Methods and Properties

0 commit comments

Comments
 (0)