Example #1
0
        private void btnCreateNew_Click(object sender, EventArgs e)
        {
            if (EmblemCount >= 99)
            {
                MessageBox.Show("The limit of the number of objects was reached!");
                return;
            }
            Graphics graphics = pnMain.CreateGraphics();

            CurrentEmblemIndex          = EmblemCount;
            emblems[CurrentEmblemIndex] = new CEmblem(graphics, 250, 250);
            emblems[CurrentEmblemIndex].Show();
            EmblemCount++;
            cbEmblems.Items.Add("Emblem № " + (EmblemCount - 1).ToString());
            cbEmblems.SelectedIndex = EmblemCount - 1;
        }
Example #2
0
 public Lab11()
 {
     InitializeComponent();
     emblems = new CEmblem[100];
 }