private void button1_Click(object sender, EventArgs e) { this.Visible = false; FormCar bf = new FormCar(); bf.Show(); }
private void button3_Click(object sender, EventArgs e) { if (!Driver.Load) { Driver driver = new Driver(); driver.DriverName = new Name(textBox1.Text, textBox2.Text, textBox3.Text); driver.BirthTime = dateTimePicker1.Value; driver.DateStartDriving = dateTimePicker2.Value; if (textBox5.Text != "") { driver.DriversLicenceNum = Convert.ToInt32(textBox5.Text); } Driver.ActiveDriver = driver; Xml.SaveUser(); } this.Visible = false; FormCar nf = new FormCar(); nf.Show(); }