public WfDocGenerator(List<ActivityChainModel> activities, RulesExtractor rulesExtractor, Settings Settings) : base(activities, rulesExtractor, Settings) { if (Settings.GetLanguage() < OutputFormat.Docx) throw new NotSupportedException("Output Language not supported:" + Settings.GetLanguage()); Name = "Workflow to Code Generator"; }
public RulesCodeGenerator(List<RuleSetDomModel> model, Settings settings, bool runAsync) : base(model, settings, runAsync) { if (settings.GetLanguage() > OutputFormat.VBNet) throw new NotSupportedException("Output Language not supported:" + settings.GetLanguage()); if (settings.GetType() != typeof(CodeSettings)) // create default codesettings _codeSettings = new CodeSettings("ClassName", settings.GetOutputDirectory(), settings.GetLanguage()); else _codeSettings = (CodeSettings)settings; Name = "Rules to Code Generator"; }
protected WorkflowOutputGenerator(List<ActivityChainModel> activities, RulesExtractor rulesExtractor, Settings Settings) { if (activities == null) throw new ArgumentNullException("activities"); if (rulesExtractor == null) throw new ArgumentNullException("rulesExtractor"); if (Settings == null) throw new ArgumentNullException("Settings"); _activities = activities; _settings = Settings; _rulesExtractor = rulesExtractor; }
public SettingsControl(Settings settings) { InitializeComponent(); this._settings = settings; }