private void toolNew_Click(object sender, EventArgs e)
        {
            Shop    so  = new Shop();
            FrmShop fss = new FrmShop(so, constr);

            fss.ShowDialog();
            fss.Dispose();
        }
 private void dgList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgList.CurrentRow.Index > 0)
     {
         Shop so = new Shop();
         so.shop_id        = int.Parse(dgList.CurrentRow.Cells[0].Value.ToString());
         so.shop_name      = dgList.CurrentRow.Cells[1].Value.ToString();
         so.Cust_id        = int.Parse(dgList.CurrentRow.Cells[2].Value.ToString());
         so.Cust_Number    = dgList.CurrentRow.Cells[3].Value.ToString();
         so.Cust_Name      = dgList.CurrentRow.Cells[4].Value.ToString();
         so.SaleOrg_id     = int.Parse(dgList.CurrentRow.Cells[5].Value.ToString());
         so.SaleOrg_Number = dgList.CurrentRow.Cells[6].Value.ToString();
         so.SaleOrg_Name   = dgList.CurrentRow.Cells[7].Value.ToString();
         FrmShop fss = new FrmShop(so, constr);
         fss.ShowDialog();
         fss.Dispose();
     }
 }