/// <summary> /// Processes all of the actions against the currently selected item /// </summary> private void ProcessActions(PlayOnItem currentItem, PassActions actions) { if (!(currentItem is PlayOnFolder)) { return; } foreach (var action in actions) { using (_logManager.NextLogVerboseDepth()) ProcessAction(currentItem, action); } }
private static void GetPassActions(PassActions list, XmlNode parentNode) { foreach (XmlNode actionNode in parentNode.ChildNodes) { var action = new PassAction { Name = Util.GetNodeAttributeValue(actionNode, "name"), Type = StringToPassItemType(actionNode.Name), Exclude = Util.GetNodeAttributeValue(actionNode, "exclude") }; if (action.Type == PassActionType.Scan) { GetPassActions(action.Actions, actionNode); } list.Add(action); } }
private static void GetPassActions(PassActions list, XmlNode parentNode) { foreach (XmlNode actionNode in parentNode.ChildNodes) { var action = new PassAction { Name = Util.GetNodeAttributeValue(actionNode, "name"), Type = StringToPassItemType(actionNode.Name), Exclude = Util.GetNodeAttributeValue(actionNode, "exclude") }; if (action.Type == PassActionType.Scan) GetPassActions(action.Actions, actionNode); list.Add(action); } }
/// <summary> /// Processes all of the actions against the currently selected item /// </summary> private void ProcessActions(PlayOnItem currentItem, PassActions actions) { if (!(currentItem is PlayOnFolder)) return; foreach (var action in actions) { using (_logManager.NextLogVerboseDepth()) ProcessAction(currentItem, action); } }
public PassAction() { Actions = new PassActions(); }
public PassItem(string description, bool enabled) { Actions = new PassActions(); Description = description; Enabled = enabled; }