private void BuilderService(string outPutFile, string tabName) { string file = Application.StartupPath + "\\Templates\\Service.cst"; string code = CodeMakerLibary.GetTemplate(file); code = ReplaceAssemblyInfo(code); DBCodeMaker.WriteCode(outPutFile, true, code); }
private void BuilderService() { this.codeEditorService.Text = string.Empty; var file = Application.StartupPath + "\\Templates\\Service.cst"; var code = CodeMakerLibary.GetTemplate(file); code = ReplaceAssemblyInfo(code); this.codeEditorService.SetCodeEditorContent("CS", code); this.codeEditorService.SaveFileName = this.GetClassName + "Service"; }
private void GenerateService(string outPutFile = "") { var file = Application.StartupPath + "\\Templates\\Service.cst"; var code = CodeMakerLibary.GetTemplate(file); code = ReplaceAssemblyInfo(code); if (string.IsNullOrEmpty(outPutFile)) { var fileName = this.GetClassName() + "Service.cs"; var codeForm = new CodeView(code) { FileName = fileName, Name = fileName }; PageUtility.AddSinglePage(codeForm, fileName, mainfrm); } else { PDMCodeMaker.WriteCode(outPutFile, true, code); } }