Example #1
0
        private void BtnAddPermission_Click(object sender, EventArgs e)
        {
            PermissionForm form = new PermissionForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                FillPermission();
            }
        }
Example #2
0
        private void BtnModifyPermission_Click(object sender, EventArgs e)
        {
            PermissionVo vo = (PermissionVo)this.gridView1.GetRow(this.gridView1.FocusedRowHandle);

            if (vo == null)
            {
                return;
            }
            PermissionForm form = new PermissionForm(vo);

            if (form.ShowDialog() == DialogResult.OK)
            {
                FillPermission();
            }
        }