private void btnPay_Click(object sender, EventArgs e) { if (amountTxt.Text != "" && TotalDiscountTxt.Text != "" && GrossTxt.Text != "" && payDD.SelectedIndex != -1 && changeGiveTxt.Text != "") { DialogResult dr = MessageBox.Show("Total Amount : " + GrossTxt.Text + "\n Total Discount : " + TotalDiscountTxt.Text + "\n Amount Given: " + amountTxt.Text + "\n Amount returned : " + changeGiveTxt.Text + " \n Are You Sure, Submit Current Sales ? \n", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { i.insertSales(dataGridView1, "proIDGV", "qunatGV", retrival.USER_ID, DateTime.Now, Convert.ToSingle(GrossTxt.Text), Convert.ToSingle(TotalDiscountTxt.Text), Convert.ToSingle(amountTxt.Text), Convert.ToSingle(changeGiveTxt.Text), payDD.SelectedItem.ToString()); MainClass.enable_reset(groupBox2); dataGridView1.Rows.Clear(); } } }
public override void addBtn_Click(object sender, EventArgs e) { MainClass.enable_reset(leftPanel); //after we click "add" the register panel will be unlocked edit = 0; }
public override void button1_Click(object sender, EventArgs e) { MainClass.enable_reset(lftPanel); edit = 0; }
public override void addBtn_Click(object sender, EventArgs e) { MainClass.enable_reset(leftPanel); edit = 0; }
private void products_Load(object sender, EventArgs e) { MainClass.enable_reset(leftPanel); r.getList("st_getCategoriesList", categoryDD, "Category", "ID"); }