Esempio n. 1
0
        /// <summary>
        /// TestToggleCommand - Use 'TestToggleCommandParams' to pass parameters into this method.
        /// </summary>
        public void TestToggleCommand()
        {
            #region Variable Declarations
            WinEdit         uINameEdit = this.UIDebugWindow.UIItemWindow.UIDIWPFOneexeListItem.UINameEdit;
            WinPane         uIItem1TestAutomationwPane    = this.UIItem1TestAutomationwWindow.UIItem1TestAutomationwWindow1.UIItem1TestAutomationwPane;
            WpfToggleButton uIToggleViewModelToggleButton = this.UIDIWPFOneWindow.UIUserControlToggleCustom.UIToggleViewModelToggleButton;
            WpfCell         uIEnglandCell = this.UIDIWPFOneWindow.UIItemTable.UIItemDataItem.UIEnglandCell;
            #endregion

            // Double-Click 'Name' text box
            Mouse.DoubleClick(uINameEdit, new Point(71, 11));

            // Click '(1) Test Automation with Microsoft Visual Studio 2...' pane
            Mouse.Click(uIItem1TestAutomationwPane, new Point(465, 862));

            // Set to 'Pressed' state 'Toggle ViewModel' toggle button
            uIToggleViewModelToggleButton.Pressed = this.TestToggleCommandParams.UIToggleViewModelToggleButtonPressed;

            // Click 'England' cell
            Mouse.Click(uIEnglandCell, new Point(11, 5));

            // Set to 'Normal' state 'Toggle ViewModel' toggle button
            uIToggleViewModelToggleButton.Pressed = this.TestToggleCommandParams.UIToggleViewModelToggleButtonPressed1;
        }
Esempio n. 2
0
 public static IClickablePageModel <TNextModel> AsPageModel <TNextModel>(this WpfToggleButton button, TNextModel nextModel) where TNextModel : IPageModel
 {
     return(button.AsClickablePageModel(nextModel));
 }