Example #1
0
        private void StartForm_Load(object sender, EventArgs e)
        {
            StartTemplate t = new StartTemplate
            {
                Parent = this,
                Height = Height,
                Width  = Width
            };

            t.Show();
        }
Example #2
0
 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();
     }
 }