Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Controls.Clear();
     randomCacChat = this.RandomCacChat();
     randomCacSo   = this.RandomCacConSo();
     createCard    = new CreateCard(this.Width, this.Height, randomCacChat, randomCacSo);
     this.Controls.Add(createCard);
     this.Controls.Add(button1);
     isCreatedCard = true;
 }
Beispiel #2
0
        private void AddCard_Resize(object sender, EventArgs e)
        {
            if (isCreatedCard == true)
            {
                this.Controls.Clear();

                CreateCard newcreateCard = new CreateCard(this.Width, this.Height);
                this.Controls.Add(newcreateCard);
                this.Controls.Add(button1);
            }
        }