static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GetParamsForm frm = new GetParamsForm(); string[] args = Environment.GetCommandLineArgs(); if (args.Length < 2) { Application.Run(frm); } else { if (args[1].ToLower().StartsWith("-h") || args[1].ToLower().StartsWith("/h")) { Usage(args[0]); } else if (args[1].ToLower().StartsWith("-xml")) { if (args.Length != 4) { Usage(args[0]); } else { FinalCutProXMLBuilder bldr = frm.GetXMLBuilder(); bldr.GenPluralEyesXML(args[2], args[3]); } } else if (args[1].ToLower().StartsWith("-nk")) { if (args.Length != 7) { Usage(args[0]); } else { NukeBuilder bldr = frm.GetNukeBuilder(); bldr.ModifyNukeFile(args[2], args[3], args[4], args[5], args[6]); } } } }
private void GenerateNuke_button_Click(object sender, EventArgs e) { //_nukeBldr.GenerateNukeFile(PluralEyes_export_textBox.Text, GeneratedNukePath_textBox.Text, NukeTemplatePath_textBox.Text); NukeBuilder.tNUKEFILE_ERROR err = _nukeBldr.ModifyNukeFile(PluralEyes_export_textBox.Text, NukeTemplatePath_textBox.Text, SourceBaseName_textBox.Text, GeneratedNukePath_textBox.Text, DestBaseName_textBox.Text); }