Exemple #1
0
        private void ShowDialogForm()
        {
            frmSecurityRolesLookup ifrmDialog = new frmSecurityRolesLookup(_RoleType);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Exemple #2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmSecurityRolesLookup ifrmDialog = new frmSecurityRolesLookup(_RoleType, searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Exemple #3
0
        private void GetDialogResult(frmSecurityRolesLookup dialogForm)
        {
            txtLookupCode.Text = dialogForm.roleID;
            txtLookupName.Text = dialogForm.roleName;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }