예제 #1
0
        public void TwitchMoveUp()
        {
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelUpButton);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this._buttons[1]);
            }
#endif
        }
예제 #2
0
        public void TwitchSubmit()
        {
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelSubmitButton);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this._buttons[2]);
            }
#endif
        }
예제 #3
0
        public void TwitchMoveDown()
        {
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelDownButton);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this._buttons[0]);
            }
#endif
        }
        public void TwitchPress(SimonButtons button)
        {
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelButtons[(int)button]);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this.buttons[(int)button]);
            }
#endif
        }
        public void TwitchPressSubmit()
        {
            if (this.TestMode)
            {
                TwitchExtensions.Press(this.TestModelSubmitButton);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this.submitButton);
            }
#endif
        }
        public void TwitchMoveDown(int index)
        {
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelCharSpinners[index].DownButton);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(this.spinners[index].DownButton);
            }
#endif
        }
        public bool TwitchCut(int spaceIndex)
        {
            if (this.WireSpaces[spaceIndex].Empty || this.WireSpaces[spaceIndex].Cut)
            {
                return(false);
            }
            if (this.TestMode)
            {
                TwitchExtensions.Click(this.TestModelWireSpaces[spaceIndex]);
            }
#if (!DEBUG)
            else
            {
                TwitchExtensions.Click(((ComplicatedWireSpace.LiveSpace) this.WireSpaces[spaceIndex]).VennSnippableWire);
            }
#endif
            return(true);
        }