Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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";
        }
Ejemplo n.º 3
0
        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);
            }
        }