Пример #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string id = TextUtils.ToString(grvData.GetFocusedRowCellValue(colSupplierId));

            if (id == "")
            {
                return;
            }
            SuppliersModel model = (SuppliersModel)SuppliersBO.Instance.FindByPKStringID("SupplierId", id);

            _rownIndex = grvData.FocusedRowHandle;

            frmSupplier frm = new frmSupplier();

            frm.Supplier        = model;
            frm.IsNew           = false;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }