示例#1
0
        private void MyClickHandler(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            foreach (Shape fig in figureList)
            {
                if (fig.ToString().Contains(btn.Text))
                {
                    temp = fig;
                }
            }

            temp.getAtributs(Current, penWidth);
            startSelect = false;
        }
示例#2
0
        private void RedrawCanvas(SaveData svd)
        {
            try
            {
                temp = CountValue(svd);

                temp.getAtributs(Color.FromArgb(svd.clr), svd.pWidth);
                temp.Draw(Bmp, svd.one, svd.two);
                pictureBox1.Image = Bmp;
                temp = null;
                // pictureBox1.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }