Esempio n. 1
0
        private void Minus_Click(object sender, EventArgs e)
        {
            PPicture figure = (PPicture)comboBox1.SelectedItem;

            if (figure.clr == Color.White)
            {
                return;
            }
            figure.Hide();
            figure.Draw(pictureBox1);
            figure.Reduce();
            figure.Show();
            figure.Draw(pictureBox1);
        }
Esempio n. 2
0
        private void Show_object_Click(object sender, EventArgs e)
        {
            PPicture figure = (PPicture)comboBox1.SelectedItem;

            figure.Show();
            figure.Draw(pictureBox1);
        }
Esempio n. 3
0
        private void New_object_Click(object sender, EventArgs e)
        {
            count++;
            int Size  = rand.Next(10, 300);
            int rand1 = rand.Next(0, 679 - Size);
            int rand2 = rand.Next(0, 525 - Size);

            PPicture figure = new PPicture(rand1, rand2, Size, "Picture " + count, Color.Red);

            figure.Show();
            figure.Draw(pictureBox1);
            comboBox1.Items.Add(figure);
        }