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

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Exemplo n.º 2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmShowStaff frm = new frmShowStaff();

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

            if (id == 0)
            {
                return;
            }

            _rownIndex = grvData.FocusedRowHandle;

            UsersModel model = (UsersModel)UsersBO.Instance.FindByPK(id);

            frmShowStaff frm = new frmShowStaff();

            frm.Model           = model;
            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Exemplo n.º 4
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }

            _rownIndex = grvData.FocusedRowHandle;

            UsersModel model = (UsersModel)UsersBO.Instance.FindByPK(id);

            frmShowStaff frm = new frmShowStaff();

            frm.Model = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadGrid();
            }
        }