Example #1
0
        //添加flow按钮
        private void button_solid_add(object sender, EventArgs e)
        {
            Color        clr    = solidUserControl1.color;
            FlowCell     cell   = new FlowCell(new SolidBrush(clr));
            Form_Message fm_msg = new Form_Message();
            string       str    = clr.ToString();

            if (fm_msg.ShowDialog() == DialogResult.OK)
            {
                cell.Text = str;
                flowLayoutPanelEx_solid.Add(cell);
            }
        }
Example #2
0
        private void button_linear_add_Click(object sender, EventArgs e)
        {
            NSLinearGradientBrushInfo LinearGradientBrushInfo = linearGradientUserControl1.LinearGradientBrushInfo;
            LinearGradientBrush       br = new LinearGradientBrush(ClientRectangle, Color.Red, Color.FromArgb(255, 0, 255, 0), LinearGradientMode.Horizontal);

            br.InterpolationColors = LinearGradientBrushInfo.ColorBlend;
            FlowCell     cell   = new FlowCell(br);
            Form_Message fm_msg = new Form_Message();
            string       str    = "渐变色" + flowLayoutPanelEx_linear.Controls.Count.ToString();

            if (fm_msg.ShowDialog() == DialogResult.OK)
            {
                cell.Text = str;
                flowLayoutPanelEx_linear.Add(cell);
            }
        }
Example #3
0
        private void button_radiate_add_Click(object sender, EventArgs e)
        {
            NSLinearGradientBrushInfo LinearGradientBrushInfo = linearGradientUserControl2.LinearGradientBrushInfo;


            PathGradientBrush br = new PathGradientBrush(_pointsPathBrushExample);

            br.InterpolationColors = LinearGradientBrushInfo.ColorBlend;
            FlowCell     cell   = new FlowCell(br);
            Form_Message fm_msg = new Form_Message();
            string       str    = "渐变色" + flowLayoutPanelEx_radiate.Controls.Count.ToString();

            if (fm_msg.ShowDialog() == DialogResult.OK)
            {
                cell.Text = str;
                flowLayoutPanelEx_radiate.Add(cell);
            }
        }