예제 #1
0
파일: Form1.cs 프로젝트: vetal54/Laba_3_2_
        private void button2_Click(object sender, EventArgs e)
        {
            CEmblem figure = (CEmblem)comboBox1.SelectedItem;

            figure.Hide();
            figure.Draw(pictureBox1);
        }
예제 #2
0
파일: Form1.cs 프로젝트: vetal54/Laba_3_2_
        private void button5_Click(object sender, EventArgs e)
        {
            CEmblem figure = (CEmblem)comboBox1.SelectedItem;

            if (figure.currentColor == Color.White)
            {
                return;
            }
            figure.Hide();
            figure.Draw(pictureBox1);
            figure.EndUp();
            figure.Show();
            figure.Draw(pictureBox1);
        }