private void button1_Click(object sender, EventArgs e) { try { Unmatched_Data ud = new Unmatched_Data(); ud.txt_icbs_acct_name.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[2].Text; ud.txt_icbs_acct_num.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[3].Text; ud.txt_icbs_date.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[1].Text; ud.txt_icbs_amount.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[4].Text; ud.txt_scan_acct_name.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[2].Text; ud.txt_scan_acct_num.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[3].Text; ud.txt_scan_date.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[1].Text; ud.txt_scan_amount.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[4].Text; ud.Show(); this.Close(); } catch { MessageBox.Show("Please Select Record To Verify", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void button1_Click(object sender, EventArgs e) { try { string icbs_trans_code = Unmatched_Icbs_Records.CheckedItems[0].SubItems[1].Text; string scan_trans_code = Unmatched_Scanned_Records.CheckedItems[0].SubItems[1].Text; if (icbs_trans_code == scan_trans_code) { try { Unmatched_Data ud = new Unmatched_Data(); ud.txt_icbs_acct_name.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[3].Text; ud.txt_icbs_acct_num.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[4].Text; ud.txt_icbs_date.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[2].Text; ud.txt_icbs_amount.Text = Unmatched_Icbs_Records.CheckedItems[0].SubItems[5].Text; ud.txt_scan_acct_name.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[3].Text; ud.txt_scan_acct_num.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[4].Text; ud.txt_scan_date.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[2].Text; ud.txt_scan_amount.Text = Unmatched_Scanned_Records.CheckedItems[0].SubItems[5].Text; ud.Show(); this.Close(); } catch { MessageBox.Show("Please Select Record To Verify", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { MessageBox.Show("Select Data with the same trasaction code.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } catch { MessageBox.Show("Please choose transactions to verify", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }