Exemple #1
0
        private void btnAddVehicle_Click(object sender, EventArgs e)
        {
            AddnewVehicle av = AddnewVehicle.getInstance();

            av.Show();
            this.Hide();
        }
 public static AddnewVehicle getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddnewVehicle();
     }
     return(uniqueInstance);
 }