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

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

            InitializeStoreItems();
        }
예제 #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();
        }