Пример #1
0
        private void btnAddnewCategory_Click(object sender, EventArgs e)
        {
            AddVehicleCategory avc = AddVehicleCategory.getInstance();

            avc.Show();
            this.Hide();
        }
        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();
        }