Ejemplo n.º 1
0
        private void buttonValueInputHelper_Click(object sender, EventArgs e)
        {
            string        conditionName = conditionComboBox.SelectedItem.ToString();
            IConditionDef conditionDef  =
                RuleEngine.GetConditionManager().GetConditionDef(conditionName);

            if (conditionDef == NativeSignatureConditionDef.GetInstance())
            {
                NativeSignatureInputHelper form = null;
                if (valueComboBox.Text.Trim().Equals(""))
                {
                    form = new NativeSignatureInputHelper();
                }
                else
                {
                    form = new NativeSignatureInputHelper(valueComboBox.Text);
                }
                if (form.ShowDialog() == DialogResult.OK)
                {
                    valueComboBox.Text = form.GetTypeString();
                }
            }
        }
Ejemplo n.º 2
0
        private void buttonValueInputHelper_Click(object sender, EventArgs e)
        {
            string conditionName = conditionComboBox.SelectedItem.ToString();
            IConditionDef conditionDef =
                RuleEngine.GetConditionManager().GetConditionDef(conditionName);

            if (conditionDef == NativeSignatureConditionDef.GetInstance())
            {
                NativeSignatureInputHelper form = null;
                if (valueComboBox.Text.Trim().Equals(""))
                    form = new NativeSignatureInputHelper();
                else
                    form = new NativeSignatureInputHelper(valueComboBox.Text);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    valueComboBox.Text = form.GetTypeString();
                }
            }
        }