|
Lines 26-32
Link Here
|
| 26 |
using System; |
26 |
using System; |
| 27 |
using System.Windows.Automation; |
27 |
using System.Windows.Automation; |
| 28 |
using System.Windows.Automation.Provider; |
28 |
using System.Windows.Automation.Provider; |
| 29 |
using SWF = System.Windows.Forms; |
29 |
using System.Windows.Forms; |
| 30 |
using Mono.UIAutomation.Winforms; |
30 |
using Mono.UIAutomation.Winforms; |
| 31 |
using Mono.UIAutomation.Winforms.Events; |
31 |
using Mono.UIAutomation.Winforms.Events; |
| 32 |
using Mono.UIAutomation.Winforms.Events.ToolBar; |
32 |
using Mono.UIAutomation.Winforms.Events.ToolBar; |
|
Lines 40-45
Link Here
|
| 40 |
public ToolBarButtonInvokeProviderBehavior (ToolBarProvider.ToolBarButtonProvider provider) |
40 |
public ToolBarButtonInvokeProviderBehavior (ToolBarProvider.ToolBarButtonProvider provider) |
| 41 |
: base (provider) |
41 |
: base (provider) |
| 42 |
{ |
42 |
{ |
|
|
43 |
this.toolBarButton = (ToolBarButton) Provider.Component; |
| 43 |
} |
44 |
} |
| 44 |
|
45 |
|
| 45 |
#endregion |
46 |
#endregion |
|
Lines 68-76
Link Here
|
| 68 |
|
69 |
|
| 69 |
public void Invoke () |
70 |
public void Invoke () |
| 70 |
{ |
71 |
{ |
| 71 |
// TODO: |
72 |
if (toolBarButton.Style == ToolBarButtonStyle.ToggleButton) { |
|
|
73 |
if (!toolBarButton.Pushed) |
| 74 |
toolBarButton.Pushed = true; |
| 75 |
else |
| 76 |
toolBarButton.Pushed = false; |
| 77 |
} |
| 72 |
} |
78 |
} |
| 73 |
|
79 |
|
| 74 |
#endregion |
80 |
#endregion |
|
|
81 |
|
| 82 |
#region Private Fields |
| 83 |
|
| 84 |
private ToolBarButton toolBarButton; |
| 85 |
|
| 86 |
#endregion |
| 75 |
} |
87 |
} |
| 76 |
} |
88 |
} |