private void RemoveButtonClicked() { if (DialogHelper.ShowDialog("Are you sure you want to clear the transaction discounts?", MessageBoxButtons.YesNo) == DialogResult.Yes) { this.disc = new cls_discount(); this.disclist.disable_all_discounts(); this.iscomplete = true; this.Close(); } }
public frmProductAdjust() { InitializeComponent(); mySQLFunc.initialize_global_variables(); fncFilter.set_theme_color(this); cls_globalfunc.formaddkbkpevent(this); this.customDiscWID = 0; this.orig_price = 0; this.disclist = new cls_discountlist(0); this.disc = new cls_discount(); }