public void DeleteRuleButton(RuleButton rule_button) { Secretary.DeleteRule(Secretary.GetRule(rule_button.GetRuleName())); RuleLayout.Controls.Remove(rule_button); }
public void RemoveRuleButton(RuleButton rule_button) { Secretary.RemoveRuleFromProfile(rule_button.GetRuleName()); RuleLayout.Controls.Remove(rule_button); }