Example #1
0
 public void QueueModule(NnModuleForm mData) =>
 Task.QueueModule(
     new NnModuleRecord(
         mData.Type,
         new Dictionary <string, string>(mData.OptionsResult)
         )
     );
Example #2
0
 public void QueueModule(NnModuleForm mData, bool force = false)
 {
     foreach (var task in Plan.Tasks.Values)
     {
         if (force || (task.Modules.Where(x => x.Type == mData.Type).Count() == 0))
         {
             task.QueueModule(
                 new NnModuleRecord(
                     mData.Type,
                     new Dictionary <string, string>(mData.OptionsResult)
                     )
                 );
         }
     }
 }