Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmShowStaff frm = new frmShowStaff();

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Пример #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmShowStaff frm = new frmShowStaff();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadGrid();
            }
        }
Пример #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();
        }
Пример #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();
            }
        }