コード例 #1
0
        private void b_DeleteEvent_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("The insventory Event [" + x.ActiveEventName + "] will be DELETED WITH ALL ITS RELATED DATA \nAre you sure of deleting this Data?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (result == DialogResult.Yes)
            {
                x.DeleteInventoryEvent(x.ActiveEventId);
                cb_InvEvent.Items.AddRange(LoadEvents().ToArray());
            }
        }