Пример #1
0
 private void AdColor_DismissEvent(object sender, EventArgs e)
 {
     if (rbHandwriting.Checked)
     {
         Handwriting.SetBrushColor(paint.Color);
     }
 }
Пример #2
0
        private void BMaterialDesignColor_Click(object sender, EventArgs e)
        {
            Color color = new Color(((Button)sender).TextColors.DefaultColor);

            SetColor(color.R, color.G, color.B);
            if (rbHandwriting.Checked)
            {
                Handwriting.SetBrushColor(paint.Color);
            }
        }
Пример #3
0
        private void RgTool_CheckedChange(object sender, RadioGroup.CheckedChangeEventArgs e)
        {
            if (!FindViewById <RadioButton>(e.CheckedId).Checked)
            {
                return;
            }
            if (e.CheckedId == Resource.Id.rb_eraser)
            {
                SetColor(eraserColor);
            }
            else
            {
                SetColor(brushColor);
            }
            if (e.CheckedId == Resource.Id.rb_handwriting)
            {
                Handwriting.SetBrushColor(paint.Color);
            }
            switch (e.CheckedId)
            {
            default:
                SelectTab(Resource.Id.sb_width);
                break;

            case Resource.Id.rb_fill:
                SelectTab();
                break;

            case Resource.Id.rb_text:
                SelectTab(new int[] {
                    Resource.Id.et_text,
                    Resource.Id.sb_size
                });
                break;
            }
        }