Example #1
0
        private void btnAddnewCategory_Click(object sender, EventArgs e)
        {
            AddVehicleCategory avc = AddVehicleCategory.getInstance();

            avc.Show();
            this.Hide();
        }
 public static AddVehicleCategory getInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new AddVehicleCategory();
     }
     return(uniqueInstance);
 }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //getting the card id
            String             cardId = this.txtCardID.Text;
            AddVehicleCategory avC    = AddVehicleCategory.getInstance();

            avC.editcategory(cardId);
            avC.Show();
            this.Hide();
        }