Пример #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);
        }
Пример #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";
        }
Пример #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);
            }
        }