public static void ToggleEnableDisable(this EventActionId id) { var pair = id.GetPair(); if (pair == null) { return; } pair.Disabled = !pair.Disabled; pair.Refresh(); }
public static EventActionPair Clone(this EventActionId id) { var newPair = SettingsHelper.CloneObject(id.GetPair()) as EventActionPair; if (newPair != null) { newPair.Identifier.GenerateNewGuid(); newPair.Add(); } return(newPair); }
public static EventActionPair MoveDown(this EventActionId id) { var pair = id.GetPair(); return(pair == null ? null : App.WidgetsSettingsStore.EventActionPairs.MoveDown(pair)); }
public static void Edit(this EventActionId id) { id.GetPair()?.Edit(); }