예제 #1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            frmProductsManage manage = new frmProductsManage();

            manage.StartPosition = FormStartPosition.CenterParent;
            manage.ShowDialog();
            LoadData();
        }
예제 #2
0
 private void grv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (grv.SelectedRows.Count != 0)
     {
         long productID           = long.Parse(grv.CurrentRow.Cells[0].Value.ToString());
         frmProductsManage manage = new frmProductsManage(productID);
         manage.StartPosition = FormStartPosition.CenterParent;
         manage.ShowDialog();
         LoadData();
     }
 }