Exemplo n.º 1
0
 private void buttonStatement_Click(object sender, EventArgs e)
 {
     try
     {
         foreach (ListViewItem item in listView.SelectedItems)
         {
             int                 id       = Convert.ToInt16(item.Tag);
             Customer            customer = new Customer(id);
             statementSearchForm form     = new statementSearchForm(this.context, customer);
             form.ShowDialog(this);
         }
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to load customer to load statement\n" + ex.Message);
     }
 }
Exemplo n.º 2
0
 private void buttonStatement_Click(object sender, EventArgs e)
 {
     try
     {
         foreach (ListViewItem item in listView.SelectedItems)
         {
             int id = Convert.ToInt16(item.Tag);
             Customer customer = new Customer(id);
             statementSearchForm form = new statementSearchForm(this.context, customer);
             form.ShowDialog(this);
         }
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to load customer to load statement\n" + ex.Message);
     }
 }