2006-12-05 Chris Toshok <toshok@ximian.com>
commit3c618cf2b6a1b4e327f77eba74c108e5a3329f98
authortoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Tue, 5 Dec 2006 21:58:00 +0000 (5 21:58 +0000)
committertoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Tue, 5 Dec 2006 21:58:00 +0000 (5 21:58 +0000)
tree038eaf734c3cbfcade302f3047e2f2b3d385ca83
parent8b835481b8fc740d619d47efe33c4a7ebadd1ce6
2006-12-05  Chris Toshok  <toshok@ximian.com>

* ButtonBase.cs: a few changes:

- don't reinitialize internal Control fields in the ctor when they
have the same values as Control sets them.

- don't set has_focus in OnGotFocus/OnLostFocus.  Control does
this before calling those methods.

- we don't need to call Refresh for anything.  use Invalidate
instead.

- OnEnabledChanged doesn't need to redraw at all - Control.cs
calls Refresh in its OnEnabledChanged.

- several of the events we were registered for in the ctor to
redraw ourselves already include calls to Invalidate in the
property setters that raise the events.  remove the extra
invalidation.

- reformat a switch statement that was 83274658 columns wide.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@69077 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog