private void button4_Click(object sender, EventArgs e) { NewCard card = new NewCard(); card.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrWhiteSpace(cbxPromos.SelectedItem.ToString())) { cbxPromos.BackColor = Color.MistyRose; } else { NewCard card = new NewCard(cbxPromos.SelectedItem.ToString(), true); card.Show(); this.Hide(); } }