示例#1
0
        private void button5_Click(object sender, EventArgs e)
        {
            AddInfoForm f = new AddInfoForm(currentProduct);

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                RefreshProdInfo();
            }
        }
示例#2
0
        private void button7_Click(object sender, EventArgs e)
        {
            DataGridViewRow currentRow = dataGridView4.Rows[dataGridView4.CurrentRow.Index];
            AddInfoForm     f          = new AddInfoForm(currentProduct,
                                                         currentRow.Cells[0].Value.ToString(),
                                                         (int)currentRow.Cells[1].Value);

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                RefreshProdInfo();
            }
        }