public void QueueModule(NnModuleForm mData) => Task.QueueModule( new NnModuleRecord( mData.Type, new Dictionary <string, string>(mData.OptionsResult) ) );
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) ) ); } } }