コード例 #1
0
        public static void OutputRazorCodeBehindFile(Options options,
                                                     DataInfo info)
        {
            string blazerFile = GetRazorFile(options, info) + ".cs";

            Console.WriteLine("Razor Code Behind File = [" + blazerFile + "]");

            CommonIO.OutputFile(blazerFile, info.RazorCodeBehindStrings, options);
        }
コード例 #2
0
        public static void OutputCustomRazorLayout(Options options,
                                                   DataInfo info)
        {
            string strFile = GetRazorCustomLayoutFile(options, info);

            if (options.IsTraceOn(Trace_Options.TraceInfo))
            {
                Trace.TraceError("Razor Custom Layout File = [" + strFile + "]");
            }

            CommonIO.OutputFile(strFile, info.RazorCustomLayoutStrings, options);
        }
コード例 #3
0
        public static void OutputBlazorFile(Options options,
                                            DataInfo info)
        {
            string blazerFile = GetRazorFile(options, info);

            if (options.IsTraceOn(Trace_Options.TraceInfo))
            {
                Trace.TraceInformation("Blazor File = [" + blazerFile + "]");
            }

            CommonIO.OutputFile(blazerFile, info.BlazorStrings, options);
        }
コード例 #4
0
        public static void OutputNavMenuFile(Options options,
                                             DataInfo info)
        {
            if (info.NewNavMenuStrings.Count > 0)
            {
                string strFile = GetNavMenuFile(options, info);

                if (options.IsTraceOn(Trace_Options.TraceInfo))
                {
                    Trace.TraceInformation("NavMenu File = [" + strFile + "]");
                }

                CommonIO.OutputFile(strFile, info.NewNavMenuStrings, options);
            }
        }
コード例 #5
0
        public static void OutputHostFile(Options options,
                                          DataInfo info)
        {
            if (info.NewHostStrings.Count > 0)
            {
                string htmlFile = GetHostFile(options, info);

                if (options.IsTraceOn(Trace_Options.TraceInfo))
                {
                    Trace.TraceInformation("Host File = [" + htmlFile + "]");
                }

                CommonIO.OutputFile(htmlFile, info.NewHostStrings, options);
            }
        }
コード例 #6
0
        public static void OutputPreview(Options options,
                                         DataInfo info)
        {
            if (options.HasPreview() == true)
            {
                string previewFile = options.PreviewFile;

                if (options.IsTraceOn(Trace_Options.TraceInfo))
                {
                    Trace.TraceInformation("Preview  File = [" + previewFile + "]");
                }

                CommonIO.OutputFile(previewFile, info.PreviewStrings, options);
            }
        }