whiplk

[CODE] - EasyHTML

May 22nd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.40 KB | None | 0 0
  1. //Criações básicas e simples de HTML, facilitações ( versão de testes )
  2. //Code form app, o resto só será postado quando tiver pronto.
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Windows.Forms;
  12. using System.IO;
  13.  
  14. namespace WindowsFormsApplication1
  15. {
  16.     public partial class Form1 : Form
  17.     {
  18.         public Form1()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         private void button1_Click(object sender, EventArgs e)
  24.         {
  25.             if (radioButton1.Checked)
  26.             {
  27.                 textBox4.Text = "<html>";
  28.                 textBox4.Text += "<title>" + textBox1.Text + "</title>";
  29.                 textBox4.Text += "<body bgcolor=\"" + textBox2.Text + "\" text=\"" + textBox3.Text + "\">";
  30.                 textBox4.Text += "//Adicione aqui seus códigos em html.";
  31.                 textBox4.Text += "</body>";
  32.                 textBox4.Text += "</html>";
  33.             }
  34.         }
  35.  
  36.         private void button2_Click(object sender, EventArgs e)
  37.         {
  38.             if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  39.             {
  40.                 if (!saveFileDialog1.CheckFileExists)
  41.                 {
  42.                     saveFileDialog1.OpenFile();
  43.                 }
  44.             }
  45.         }
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment