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

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            long id = TextUtils.ToInt64(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            PartBorrowModel model = (PartBorrowModel)PartBorrowBO.Instance.FindByPK(id);

            _rownIndex = grvData.FocusedRowHandle;

            frmPartBorrow frm = new frmPartBorrow();

            frm.PartBorrow      = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }