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

            fss.ShowDialog();
            fss.Dispose();
        }
 private void dgList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgList.CurrentRow.Index > 0)
     {
         Store so = new Store();
         so.Store_id        = int.Parse(dgList.CurrentRow.Cells[0].Value.ToString());
         so.Store_name      = dgList.CurrentRow.Cells[1].Value.ToString();
         so.Stock_id        = int.Parse(dgList.CurrentRow.Cells[2].Value.ToString());
         so.Stock_Number    = dgList.CurrentRow.Cells[3].Value.ToString();
         so.Stock_Name      = dgList.CurrentRow.Cells[4].Value.ToString();
         so.StoreOrg_id     = int.Parse(dgList.CurrentRow.Cells[5].Value.ToString());
         so.StoreOrg_Number = dgList.CurrentRow.Cells[6].Value.ToString();
         so.StoreOrg_Name   = dgList.CurrentRow.Cells[7].Value.ToString();
         FrmStore fss = new FrmStore(so, constr);
         fss.ShowDialog();
         fss.Dispose();
     }
 }