Exemplo n.º 1
0
 private void bunifuThinButton23_Click(object sender, EventArgs e)
 {
     PL.compDebtProcess frm = new compDebtProcess();
     frm.state = "rep";
     frm.name  = txtName.Text;
     frm.ShowDialog();
 }
Exemplo n.º 2
0
 private void bunifuThinButton21_Click(object sender, EventArgs e)
 {
     try
     {
         PL.compDebtProcess frm = new compDebtProcess();
         frm.state = "dbt";
         frm.name  = txtName.Text;
         frm.ShowDialog();
         this.txtTotalDebt.Text = dbt.fetchCompaniesDebts(txtName.Text).Rows[0][0].ToString();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void bunifuThinButton23_Click(object sender, EventArgs e)
 {
     PL.compDebtProcess frm = new compDebtProcess();
     frm.state = "rep";
     frm.name  = this.txtName.Text;
     frm.ShowDialog();
     try
     {
         this.dataGridView1.DataSource = dbt.compDebtHistory(this.txtName.Text);
         this.txtTotalDebt.Text        = dbt.fetchCompaniesDebts(this.txtName.Text).Rows[0][0].ToString();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }