예제 #1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditCustomer obj = new EditCustomer(grid.SelectedRows[0].Cells[0].Value.ToString());

            obj.ShowDialog();
            grid.DataSource = new DBContextHelper().GetAllCust();
        }
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditCustomer editCustomer = new EditCustomer(dataGridView1.SelectedRows[0].Cells[0].Value.ToString())
            {
                StartPosition = FormStartPosition.CenterScreen
            };

            editCustomer.ShowDialog();
            dataGridView1.DataSource = new Database().GetCustomers();
        }