string DrawGeneratedText()
        {
            GUILayout.BeginVertical("Box");
            var generatedViewCode = ConduitCodeGeneration
                                    .GenerateViewTemplate(
                SelectedControllerName,
                _viewName);

            foreach (var line in generatedViewCode.Split('\n'))
            {
                GUILayout.Label(line.Replace("\t", "     "));
            }
            GUILayout.EndVertical();
            return(generatedViewCode);
        }
示例#2
0
        private string DrawGeneratedText()
        {
            GUILayout.BeginVertical("Box");
            var generatedText = ConduitCodeGeneration
                                .GenerateModelTemplate(
                _modelName,
                SelectedModelParent,
                _isModelRoot);

            foreach (var line in generatedText.Split('\n'))
            {
                GUILayout.Label(line.Replace("\t", "    "));
            }
            GUILayout.EndVertical();

            return(generatedText);
        }
        private string DrawGeneratedText()
        {
            GUILayout.BeginVertical("Box");
            var generatedText = ConduitCodeGeneration
                                .GenerateControllerTemplate(
                SelectedModelStr,
                SelectedControllerStr,
                _exclusive,
                _modelBound
                );

            foreach (var line in generatedText.Split('\n'))
            {
                GUILayout.Label(line.Replace("\t", "    "));
            }
            GUILayout.EndVertical();
            return(generatedText);
        }
示例#4
0
 static string SanatizeModelName(string model)
 {
     return(ConduitCodeGeneration.CamelCaseSentence(model));
 }