/// <summary> /// /// </summary> /// <param name="folder"></param> /// <param name="outfolder"></param> /// <param name="file"></param> /// <returns></returns> public static async Task DumpFile(string folder, string outfolder, string file = "") { MainController.Get().ProjectStatus = EProjectStatus.Busy; WCC_Command cmd = null; try { if (file == "") { cmd = new Wcc_lite.dumpfile() { Dir = folder, Out = outfolder }; } else { cmd = new Wcc_lite.dumpfile() { File = file, Out = outfolder }; } await Task.Run(() => MainController.Get().WccHelper.RunCommand(cmd)); } catch (Exception ex) { Logger.LogString(ex.ToString() + "\n", Logtype.Error); } MainController.Get().ProjectStatus = EProjectStatus.Ready; }
/// <summary> /// runs wcc_lite with specified command /// </summary> /// <param name="cmd"></param> /// <returns></returns> public WFR RunCommandSync(WCC_Command cmd) { string args = cmd.CommandLine; return(RunArgsSync(cmd.Name, args)); }