Beispiel #1
0
        private void aMOUNTDISCOUNTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_discount_entry_amount frm = new frm_discount_entry_amount();

            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            DisplayDiscounts();
        }
Beispiel #2
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            int      DiscountID = Convert.ToInt32(dataGridView3.Rows[SelectedRow].Cells[0].Value);
            Discount discount   = Discount.GetDiscount(DiscountID);

            if (discount.Type == "PERCENTAGE")
            {
                frm_discount_entry_percentage frm = new frm_discount_entry_percentage(discount);
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.ShowDialog();
            }
            else if (discount.Type == "AMOUNT")
            {
                frm_discount_entry_amount frm = new frm_discount_entry_amount(discount);
                frm.StartPosition = FormStartPosition.CenterScreen;
                frm.ShowDialog();
            }
        }