View | Details | Raw Unified | Return to bug 428759
Collapse All | Expand All

(-)Mono.UIAutomation.Winforms.Behaviors/ToolBar/ToolBarButtonInvokeProviderBehavior.cs (-2 / +14 lines)
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
}
(-)Mono.UIAutomation.Winforms.Events/ToolBar/ToolBarButtonInvokePatternInvokedEvent.cs (-4 / +4 lines)
Lines 46-59 Link Here
46
46
47
		public override void Connect ()
47
		public override void Connect ()
48
		{
48
		{
49
//			((SWF.ToolBar) Provider.Control).ButtonClick +=
49
			((SWF.ToolBar) Provider.Control).ButtonClick +=
50
//				new SWF.ToolBarButtonClickEventHandler (OnButtonClick);
50
				new SWF.ToolBarButtonClickEventHandler (OnButtonClick);
51
		}
51
		}
52
		
52
		
53
		public override void Disconnect ()
53
		public override void Disconnect ()
54
		{
54
		{
55
//			((SWF.ToolBar) Provider.Control).ButtonClick -=
55
			((SWF.ToolBar) Provider.Control).ButtonClick -=
56
//				new SWF.ToolBarButtonClickEventHandler (OnButtonClick);
56
				new SWF.ToolBarButtonClickEventHandler (OnButtonClick);
57
		}
57
		}
58
		
58
		
59
		#endregion
59
		#endregion

Return to bug 428759