Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavindra <ravindra@mono-cvs.ximian.com>2004-11-17 14:36:23 +0300
committerRavindra <ravindra@mono-cvs.ximian.com>2004-11-17 14:36:23 +0300
commit5861c93b04efc4eadd1f217726d23e57515252f5 (patch)
tree89990139c674a6ab1921400e0ecc472728210fe8
parent6680c1bb12e5515c6eb69f8e796df3cc4679fdff (diff)
Formatting VS.NET's formatting mess.
svn path=/trunk/mcs/; revision=36210
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs2
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs25
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs4
3 files changed, 17 insertions, 14 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
index 6ece20d2b3d..2856a0912bb 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
@@ -89,7 +89,7 @@ namespace System.Windows.Forms
// we can't do ColumnHeader.column_rect.XXX. Hence,
// we have some of the following properties to work around CS0197.
internal bool Pressed {
- get { return this.pressed; }
+ get { return this.pressed; }
}
internal int X {
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
index 7fc40a6ac5f..a31dbddf5a0 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
@@ -810,10 +810,10 @@ namespace System.Windows.Forms
}
if (this.clicked_column != null) {
- this.clicked_column.pressed = true;
- this.Invalidate (this.clicked_column.Rect);
- this.Redraw (false);
- return;
+ this.clicked_column.pressed = true;
+ this.Invalidate (this.clicked_column.Rect);
+ this.Redraw (false);
+ return;
}
}
@@ -867,13 +867,13 @@ namespace System.Windows.Forms
// on a column
if (this.clicked_column != null) {
if (this.clicked_column.pressed == false &&
- this.clicked_column.Rect.Contains (hit)) {
+ this.clicked_column.Rect.Contains (hit)) {
this.clicked_column.pressed = true;
this.Invalidate (this.clicked_column.Rect);
this.Redraw (false);
}
else if (this.clicked_column.pressed &&
- ! this.clicked_column.Rect.Contains (hit)) {
+ ! this.clicked_column.Rect.Contains (hit)) {
this.clicked_column.pressed = false;
this.Invalidate (this.clicked_column.Rect);
this.Redraw (false);
@@ -890,12 +890,13 @@ namespace System.Windows.Forms
Point hit = new Point (me.X, me.Y);
if (this.clicked_column != null) {
- if (this.clicked_column.pressed) {
- this.clicked_column.pressed = false;
- this.Invalidate (this.clicked_column.Rect);
- this.Redraw (false);
- this.OnColumnClick (new ColumnClickEventArgs (this.clicked_column.Index));
- }
+ if (this.clicked_column.pressed) {
+ this.clicked_column.pressed = false;
+ this.Invalidate (this.clicked_column.Rect);
+ this.Redraw (false);
+ this.OnColumnClick (new ColumnClickEventArgs
+ (this.clicked_column.Index));
+ }
}
this.clicked_column = null;
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
index db464c02cc9..974ae44d38b 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
@@ -1050,7 +1050,9 @@ namespace System.Windows.Forms
0, 0, control.TotalWidth, control.Font.Height);
if (control.Columns.Count > 0) {
foreach (ColumnHeader col in control.Columns) {
- this.CPDrawButton (dc, col.Rect, (col.Pressed ? ButtonState.Pushed : ButtonState.Normal));
+ this.CPDrawButton (dc, col.Rect, (col.Pressed ?
+ ButtonState.Pushed :
+ ButtonState.Normal));
dc.DrawString (col.Text, control.Font,
ResPool.GetSolidBrush (this.ColorButtonText),
col.Rect, col.Format);