private void button1_Click(object sender, EventArgs e) { if (!Form1.Instance.PnlContainer.Controls.ContainsKey("UCQuest1")) { UCQuest1 quest1 = new UCQuest1(); quest1.Dock = DockStyle.Fill; Form1.Instance.PnlContainer.Controls.Add(quest1); } Form1.Instance.PnlContainer.Controls["UCQuest1"].BringToFront(); }
public UCQuest9(UCQuest1 q1) { InitializeComponent(); this.q1 = q1; }