Example #1
0
        private void button1_Clicked(object sender, EventArgs e)
        {
            byte result = Input.enterNumber(1);

            switch (result)
            {
            case 0:
                DisplayAlert("Failure", "Unexpected Error", "not yeet");
                break;

            case 1:        // color the first bubble
                digit1.Color = Constants.FullBubble;
                break;

            case 2:
                digit2.Color = Constants.FullBubble;
                break;

            case 3:
                digit3.Color = Constants.FullBubble;
                break;

            case 4:
                digit4.Color = Constants.FullBubble;
                Signin();
                break;
            }
        }
Example #2
0
        private void button1_Clicked(object sender, EventArgs e)
        {
            byte result = Input.enterNumber(1);

            switch (result)
            {
            case 0:
                break;

            case 1:        // color the first bubble
                digit1.Text = "1";
                break;

            case 2:
                digit2.Text = "1";
                break;

            case 3:
                digit3.Text = "1";
                break;

            case 4:
                digit4.Text = "1";
                break;
            }
        }