コード例 #1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmSecurityRightsLookup ifrmDialog = new frmSecurityRightsLookup(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
コード例 #2
0
        private void GetDialogResult(frmSecurityRightsLookup dialogForm)
        {
            txtLookupName.Text = dialogForm.rightName;
            txtLookupCode.Text = dialogForm.rightID;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
コード例 #3
0
        private void ShowDialogForm()
        {
            frmSecurityRightsLookup ifrmDialog = new frmSecurityRightsLookup();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }