Example #1
0
        // Done
        private void btnUpdateStoreItem_Click(object sender, EventArgs e)
        {
            StoreItemMaintenance sim = new StoreItemMaintenance();

            sim.btnMaintain.Text = "Update Store Item";
            sim.ShowDialog();

            InitializeStoreItems();
        }
Example #2
0
        // Done
        private void btnDeleteStoreItem_Click(object sender, EventArgs e)
        {
            StoreItemMaintenance sim = new StoreItemMaintenance();

            sim.cbxCategories.Enabled    = false;
            sim.cbxSubCategories.Enabled = false;
            sim.txtItemName.Enabled      = false;
            sim.txtUnitPrice.Enabled     = false;
            sim.btnMaintain.Text         = "Delete Store Item";
            sim.ShowDialog();

            InitializeStoreItems();
        }