Exemplo n.º 1
0
        private void cmdOK_Click(object sender, System.EventArgs e)
        {
            if (txtMethodName.Text.Length == 0)
            {
                MessageBox.Show(this, "Please enter a method name.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            mCustomCreateMethod.name = txtMethodName.Text;
            AttributeSelector.Store();

            this.DialogResult = DialogResult.OK;
            this.Hide();
        }
Exemplo n.º 2
0
        private void cmdOK_Click(object sender, System.EventArgs e)
        {
            if (txtMethodName.Text.Length == 0)
            {
                MessageBox.Show(this, "Please enter a method name.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            mCustomFindMethod.name              = txtMethodName.Text;
            mCustomFindMethod.description       = txtDescription.Text.Length == 0 ? null : txtDescription.Text;
            mCustomFindMethod.entityalias       = txtEntityAlias.Text.Length == 0 ? null : txtEntityAlias.Text;
            mCustomFindMethod.whereexpression   = txtWhereExpression.Text.Length == 0 ? null : txtWhereExpression.Text;
            mCustomFindMethod.orderbyexpression = txtOrderBy.Text.Length == 0 ? null : txtOrderBy.Text;
            mCustomFindMethod.returnsmultiple   = chkReturnsMultiple.Checked;
            mCustomFindMethod.generatetest      = chkGenerateTest.Checked;
            AttributeSelector.Store();

            this.DialogResult = DialogResult.OK;
            this.Hide();
        }