Example #1
0
    protected override void OnPressed01(DotBehavior dot)
    {
        if (_isPressed == true)
        {
            return;
        }

        if (_numTimePressed >= 3)
        {
            var dotToChange = Controller.Dots[10];
            ColorUtil.ChangeColor(dotToChange, MaterialColorEnum.Gold);
            _isPressed = true;
            DelayedRun(() => {
                GotoNextPage();
            }, NextPageDelay);
        }
        else if (_numTimePressed >= 2)
        {
            var dotToChange = Controller.Dots[9];
            ColorUtil.ChangeColor(dotToChange, MaterialColorEnum.Gold);
        }
        else
        {
            ShowDot(_numTimePressed + _startIdx);
        }
        _numTimePressed++;
    }
Example #2
0
    protected override void OnPressed03(DotBehavior dot)
    {
        if (_isPressed == true)
        {
            return;
        }
        _isPressed = true;

        DelayedRunWithGotoNextPage(() => {
            ColorUtil.ChangeColor(dot, MaterialColorEnum.Blue);
        }, AnyActionDelay);
    }
 private void btn_Header_Color_Click(object sender, EventArgs e)
 {
     FrameDesign.HeaderTxtColor = ColorUtil.ChangeColor((Button)sender);
 }