Esempio n. 1
0
    /// <summary>
    /// Stores Macro condition to main Edit form.
    /// </summary>
    private void StoreMacroData()
    {
        // For macro rule don't store validity
        ClearStoredValidityData();

        // Store null value as rule parameter
        editForm.Data["RuleParameter"] = null;

        // Store xml with macro condition
        editForm.Data["RuleCondition"] = RuleHelper.GetMacroCondition(macroEditor.Text);
    }
Esempio n. 2
0
    /// <summary>
    /// Stores Macro condition to main Edit form.
    /// </summary>
    private void StoreMacroData()
    {
        // For macro rule don't store validity
        ClearStoredValidityData();

        // Only activity rules can be recurring and have max points
        editForm.Data["RuleIsRecurring"] = false;
        editForm.Data["RuleMaxPoints"]   = null;

        // Store null value as rule parameter
        editForm.Data["RuleParameter"] = null;

        // Store xml with macro condition
        editForm.Data["RuleCondition"] = RuleHelper.GetMacroCondition(macroEditor.Text);
    }