private void StartForm_Load(object sender, EventArgs e) { StartTemplate t = new StartTemplate { Parent = this, Height = Height, Width = Width }; t.Show(); }
private void Button1_Click(object sender, EventArgs e) { if (textBox1.Text == "lada" && textBox2.Text == "kalina") { this.Hide(); StartTemplate s = new StartTemplate { Parent = this.Parent, Width = this.Width, Height = this.Height }; s.Show(); new ResultForm().ShowDialog(); } }