Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace System_zgłoszeń_serwisowy
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string html;
- html = "<html><body><b><font size='30px'><i>Zamówienie</i></font><br> Data: </b>" + dateTimePicker1.Value.ToShortDateString() + "<br>Zgłoszenie nr: " + zgloszenienr.Value + "<br>Zgłaszający: " + textBox1.Text + "<br>tel. kontaktowy: " + textBox2.Text + "<br>Typ zlecenia: " + comboBox1.Text + "<br>Prognozowany termin naprawy: " + dateTimePicker2.Value.ToShortDateString() + "<br>Prognozowana cena: " + textBox3.Text + "</body></html> \n";
- webBrowser1.DocumentText = html;
- zgloszenienr.Value++;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- }
- private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
- {
- webBrowser1.ShowPrintPreviewDialog();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement