상속: System.Windows.Forms.Form
예제 #1
0
        private void buttonChanges_Click(object sender, EventArgs e)
        {
            FormChangeLog changeLog = new FormChangeLog();

            changeLog.TopMost = true;
            changeLog.ShowDialog(this);
        }
예제 #2
0
파일: FormAbout.cs 프로젝트: litdev1/LitDev
 private void buttonChanges_Click(object sender, EventArgs e)
 {
     FormChangeLog changeLog = new FormChangeLog();
     changeLog.TopMost = true;
     changeLog.ShowDialog(this);
 }
예제 #3
0
        private void ChangeLog()
        {
            string htmlFile = "C:\\Users\\Steve\\Documents\\LitDev\\ChangeLog.html";
            StreamWriter sw = new StreamWriter(htmlFile, false);

            //sw.WriteLine("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
            sw.WriteLine("<!DOCTYPE html>");
            sw.WriteLine("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
            sw.WriteLine("<head>");
            sw.WriteLine(" <meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\">");
            sw.WriteLine(" <title>" + " LitDev ChangeLog</title>");
            sw.WriteLine(" <meta name=\"description\" content=\"SmallBasic " + " LitDev ChangeLog\" />");
            sw.WriteLine(" <meta name=\"keywords\" content=\"SmallBasic,litdev,ChangeLog\" />");
            sw.WriteLine(" <link rel=\"stylesheet\" type=\"text/css\" href=\"styleAPI.css\" />");
            sw.WriteLine(" <link rel=\"shortcut icon\" href=\"favicon.ico\" />");
            sw.WriteLine("</head>");
            sw.WriteLine("<body>");
            sw.WriteLine("<div id=\"wrapper\">");
            sw.WriteLine("<div id=\"content\">");
            sw.WriteLine();
            sw.Write("<p class=\"" + "assembly" + "\">");
            sw.Write("LitDev Extension Change Log");
            sw.Write("</p>");
            sw.WriteLine("<p class=\"links\">");
            sw.WriteLine("&nbsp;<a href=\"index.html\">Return to Main Page</a>");
            sw.WriteLine("</p>");

            FormChangeLog changeLog = new FormChangeLog();
            foreach (TreeNode node1 in changeLog.treeView1.Nodes)
            {
                sw.Write("<br />" + "<span class=\"" + "group" + "\">");
                sw.Write(node1.Text + "<br />");
                sw.WriteLine("</span>");
                foreach (TreeNode node2 in node1.Nodes)
                {
                    sw.Write("<span class=\"" + "method" + "\">");
                    sw.Write(node2.Text + "<br />");
                    sw.WriteLine("</span>");
                    foreach (TreeNode node3 in node2.Nodes)
                    {
                        sw.Write("<span class=\"" + "text" + "\">");
                        sw.Write(node3.Text + "<br />");
                        sw.WriteLine("</span>");
                    }
                }
            }

            sw.WriteLine("<br />");
            sw.WriteLine("<div id=\"footer\">");
            sw.WriteLine("<hr style=\"height: 2px; width: 100%;\" />");
            sw.WriteLine("<a style=\"position: relative; float: left;\" href=\"http://free-website-translation.com/\" id=\"ftwtranslation_button\" hreflang=\"en\" title=\"\" style=\"border:0;\"><img src=\"http://free-website-translation.com/img/fwt_button_en.gif\" id=\"ftwtranslation_image\" alt=\"Website Translation Widget\" style=\"border:0;\"/></a> <script type=\"text/javascript\" src=\"http://free-website-translation.com/scripts/fwt.js\" /></script>");
            //sw.WriteLine("<a style=\"position: relative; float: right;\" href=\"http://www.000webhost.com/\" target=\"_blank\"><img src=\"http://www.000webhost.com/images/80x15_powered.gif\" alt=\"Web Hosting\" width=\"80\" height=\"15\" border=\"0\" /></a>");
            sw.WriteLine("</div>");
            sw.WriteLine("</div>");
            sw.WriteLine("</div>");
            sw.WriteLine("</body>");
            sw.WriteLine("<script>");
            sw.WriteLine("(function (i, s, o, g, r, a, m) {");
            sw.WriteLine(" i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {");
            sw.WriteLine("  (i[r].q = i[r].q || []).push(arguments)");
            sw.WriteLine(" }, i[r].l = 1 * new Date(); a = s.createElement(o),");
            sw.WriteLine(" m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)");
            sw.WriteLine("})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');");
            sw.WriteLine("ga('create', 'UA-28519634-1', 'auto');");
            sw.WriteLine("ga('send', 'pageview');");
            sw.WriteLine("</script>");
            //sw.WriteLine("<script type=\"text/javascript\">");
            //sw.WriteLine("var _gaq = _gaq || [];");
            //sw.WriteLine("_gaq.push(['_setAccount', 'UA-28519634-1']);");
            //sw.WriteLine("_gaq.push(['_trackPageview']);");
            //sw.WriteLine("(function () {");
            //sw.WriteLine("var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;");
            //sw.WriteLine("ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';");
            //sw.WriteLine("var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);");
            //sw.WriteLine("})();");
            //sw.WriteLine("</script>");
            sw.WriteLine("</html>");
            sw.Close();
        }