Bugzilla – Attachment 264052 Details for
Bug 428759
ToolBar: Begin implementation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Implemented Invoke().
toolbar.patch (text/plain), 2.17 KB, created by
Neville Gao
on 2009-01-09 06:59:52 UTC
(
hide
)
Description:
Implemented Invoke().
Filename:
MIME Type:
Creator:
Neville Gao
Created:
2009-01-09 06:59:52 UTC
Size:
2.17 KB
patch
obsolete
>Index: Mono.UIAutomation.Winforms.Behaviors/ToolBar/ToolBarButtonInvokeProviderBehavior.cs >=================================================================== >--- Mono.UIAutomation.Winforms.Behaviors/ToolBar/ToolBarButtonInvokeProviderBehavior.cs (revision 122861) >+++ Mono.UIAutomation.Winforms.Behaviors/ToolBar/ToolBarButtonInvokeProviderBehavior.cs (working copy) >@@ -26,7 +26,7 @@ > using System; > using System.Windows.Automation; > using System.Windows.Automation.Provider; >-using SWF = System.Windows.Forms; >+using System.Windows.Forms; > using Mono.UIAutomation.Winforms; > using Mono.UIAutomation.Winforms.Events; > using Mono.UIAutomation.Winforms.Events.ToolBar; >@@ -40,6 +40,7 @@ > public ToolBarButtonInvokeProviderBehavior (ToolBarProvider.ToolBarButtonProvider provider) > : base (provider) > { >+ this.toolBarButton = (ToolBarButton) Provider.Component; > } > > #endregion >@@ -68,9 +69,20 @@ > > public void Invoke () > { >- // TODO: >+ if (toolBarButton.Style == ToolBarButtonStyle.ToggleButton) { >+ if (!toolBarButton.Pushed) >+ toolBarButton.Pushed = true; >+ else >+ toolBarButton.Pushed = false; >+ } > } > > #endregion >+ >+ #region Private Fields >+ >+ private ToolBarButton toolBarButton; >+ >+ #endregion > } > } >Index: Mono.UIAutomation.Winforms.Events/ToolBar/ToolBarButtonInvokePatternInvokedEvent.cs >=================================================================== >--- Mono.UIAutomation.Winforms.Events/ToolBar/ToolBarButtonInvokePatternInvokedEvent.cs (revision 122861) >+++ Mono.UIAutomation.Winforms.Events/ToolBar/ToolBarButtonInvokePatternInvokedEvent.cs (working copy) >@@ -46,14 +46,14 @@ > > public override void Connect () > { >-// ((SWF.ToolBar) Provider.Control).ButtonClick += >-// new SWF.ToolBarButtonClickEventHandler (OnButtonClick); >+ ((SWF.ToolBar) Provider.Control).ButtonClick += >+ new SWF.ToolBarButtonClickEventHandler (OnButtonClick); > } > > public override void Disconnect () > { >-// ((SWF.ToolBar) Provider.Control).ButtonClick -= >-// new SWF.ToolBarButtonClickEventHandler (OnButtonClick); >+ ((SWF.ToolBar) Provider.Control).ButtonClick -= >+ new SWF.ToolBarButtonClickEventHandler (OnButtonClick); > } > > #endregion
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 428759
:
257630
|
264052
|
264690