Exemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmConfigShipToDetailH frm = new frmConfigShipToDetailH();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = Lib.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            ConfigShipToModel      model = (ConfigShipToModel)ConfigShipToBO.Instance.FindByPK(id);
            frmConfigShipToDetailH frm   = new frmConfigShipToDetailH();

            frm._ShipToModel = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }