Example #1
0
 private void button14_Click(object sender, EventArgs e)
 {
     try
     {
         if (int.Parse(dataGridView2[6, dataGridView2.CurrentRow.Index].Value.ToString()) > 0)
         {
             viewer                   = new Poto_viewer();
             viewer.Patch             = "image_customer/" + dataGridView2[0, dataGridView2.CurrentRow.Index].Value.ToString() + ".JPG";
             viewer.txt_c_nama.Text   = dataGridView2[1, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_alamat.Text = dataGridView2[2, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_hp.Text     = dataGridView2[3, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_kantor.Text = dataGridView2[4, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_banyak.Text = dataGridView2[6, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Custome ini belum bayar", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         //MessageBox.Show(ex.ToString());
     }
 }
 private void button14_Click(object sender, EventArgs e)
 {
     try
     {
         if (int.Parse(dataGridView2[6, dataGridView2.CurrentRow.Index].Value.ToString()) > 0)
         {
             viewer = new Poto_viewer();
             viewer.Patch = "image_customer/" + dataGridView2[0, dataGridView2.CurrentRow.Index].Value.ToString() + ".JPG";
             viewer.txt_c_nama.Text = dataGridView2[1, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_alamat.Text = dataGridView2[2, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_hp.Text = dataGridView2[3, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_kantor.Text = dataGridView2[4, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.txt_c_banyak.Text = dataGridView2[6, dataGridView2.CurrentRow.Index].Value.ToString();
             viewer.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Custome ini belum bayar", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         //MessageBox.Show(ex.ToString());
     }
 }