Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 /// <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);
     }
 }
Пример #5
0
 public PassAction()
 {
     Actions = new PassActions();
 }
Пример #6
0
 public PassItem(string description, bool enabled)
 {
     Actions     = new PassActions();
     Description = description;
     Enabled     = enabled;
 }