Beispiel #1
0
        private void btnEditExpression_Click(object sender, EventArgs e)
        {
            if (txtExpression.Text.Trim().Length == 0)
            {
                //MessageBox.Show("Enter an Expression in the Text Box prior to Editing.", "No Expression");
                AddError("Enter an Expression in the Text Box prior to Editing.", 400, false);
                return;
            }

            RuleSetManager.LoadRuleSet(txtExpression.Text);
            txtExpression.Text = RuleSetManager.EditExpression();
        }
Beispiel #2
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            if (txtExpression.Text.Trim().Length == 0)
            {
                AddError("Enter an Expression in the Text Box prior to Copying.", 401, false);
                return;
            }

            if (RuleSetManager.RuleSetCount == 0)
            {
                RuleSetManager.LoadRuleSet(txtExpression.Text);
            }

            RuleSetManager.CopyToClipboard();
        }