/// <summary> /// Fire condition delete event /// </summary> /// <param name="conditionDisplay"></param> private void DoDeleteCondition(ConditionDisplayBase conditionDisplay) { if (Condition_Delete != null && !m_hasLegacyConditions) { Condition_Delete(this, new ConditionEventArgs(null, conditionDisplay, null)); } }
/// <summary> /// Attempt to edit the hypelink in a ConditionDisplay at the given x,y coordinate /// </summary> /// <param name="conditionDisplay">ConditionDisplay to edit</param> /// <param name="x">X location</param> /// <param name="y">Y location</param> private void DoConditionEdit(ConditionDisplayBase conditionDisplay, int x, int y) { // Ignore move clicks for legacy policies if (m_hasLegacyConditions) return; if (conditionDisplay.OverHyperlink(x, y)) { if (Condition_Edit != null) { IHyperlinkObject hyperlink = conditionDisplay.GetHyperlinkObject(x, y); Condition_Edit(this, new ConditionEventArgs(m_conditions[0] as IConditionGroup, conditionDisplay, hyperlink)); } } }
private void DoSelectCondition(ConditionDisplayBase conditionDisplay) { if (Condition_Select != null) { Condition_Select(this, MakeEditActionEventArgs()); } }