Пример #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            FormUpdateSale form = new FormUpdateSale(dataGridView1.Rows[e.RowIndex], this);

            this.Hide();
            form.Show();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("请选择要查看的订单!");
                return;
            }
            FormUpdateSale form = new FormUpdateSale(dataGridView1.Rows[dataGridView1.SelectedRows[0].Index], this);

            this.Hide();
            form.Show();
        }