static void Main(string[] args) { using (ConverterMgr convert = new ConverterMgr()) { convert.output += Output; if (args.Length <= 0) { Console.WriteLine("Please supply a file"); return; } for (int i = 1; i < args.Length; i++) { if (args[i] == "--force") { convert.force = true; } else { convert.export = args[i]; } } convert.Convert(args[0]); } }
public void Setup(ConverterMgr _mgr, IConvertItem _parent) { mgr = _mgr; mgr.SetModuleFactory("rotator", () => new RotatorModule()); }
public void Setup(ConverterMgr _mgr, IConvertItem _parent) { mgr = _mgr; Setup(); }
public void Setup(ConverterMgr mgr, IConvertItem parent) { mgr.SetModuleFactory("control", () => new ControlModule()); }