private void bunifuThinButton23_Click(object sender, EventArgs e) { PL.customerDebtHistory frm = new customerDebtHistory(); frm.id = this.id; frm.oldDept = Convert.ToDouble(txtDebt.Text); frm.ShowDialog(); this.invoDataGrid1.DataSource = order.notPaidInCash(id); this.docDataGrid2.DataSource = doc.unPaidDoc(id); }
private void bunifuCustomDataGrid1_DoubleClick(object sender, EventArgs e) { PL.customerDebtHistory frm = new customerDebtHistory(); try { frm.id = Convert.ToInt32(this.bunifuCustomDataGrid1.CurrentRow.Cells[0].Value); frm.oldDept = Convert.ToDouble(this.bunifuCustomDataGrid1.CurrentRow.Cells[2].Value); frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BtnDebtsBrows_Click(object sender, EventArgs e) { try { PL.customerDebtHistory frm = new customerDebtHistory(); frm.id = this.CustomerNo; frm.oldDept = Convert.ToDouble(txtDebt.Text); frm.ShowDialog(); //this.dataGridView1.DataSource = order.notPaidInCash(id); //this.docDataGrid2.DataSource = doc.unPaidDoc(id); } catch (Exception ex) { MessageBox.Show(ex.Message); } }