Esempio n. 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     ReconcileStock a = new ReconcileStock(id);
     a.ShowDialog();
 }
Esempio n. 2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (dataGridView1.CurrentCell.ColumnIndex == 0)
                {
                    int id = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[1].Value);
                    viewStock a = new viewStock(id);
                    a.ShowDialog();

                }
                if (dataGridView1.CurrentCell.ColumnIndex == 7)
                {
                    int id = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[7].Value);
                    ReconcileStock a = new ReconcileStock(id);
                    a.ShowDialog();

                }
            }
            catch (Exception d)
            {
                MessageBox.Show("ERROR: " + d);
            }
        }