Torna al Thread
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;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Main : Form
{
public Main()
{
InitializeComponent();
}
private void Main_Load(object sender, EventArgs e)
{
timer.Enabled = true;
contatti cliente = new contatti();
FileStream SalvaContatti = new FileStream("agenda.txt", FileMode.Append);
BinaryWriter Salva = new BinaryWriter(SalvaContatti);
}
private void timer_Tick(object sender, EventArgs e)
{
calendario.Visible = true;
strip.Visible = true;
}
private void button1_Click(object sender, EventArgs e)
{
boxnome.BackColor = System.Drawing.SystemColors.Control;
Contactpan.Visible = true;
}
private void ConfermaContact_Click(object sender, EventArgs e)
{
cliente.nome = boxnome.Text;
cliente.cognome = boxcognome.Text;
cliente.indirizzo = boxindirizzo.Text;
cliente.email = boxemail.Text;
cliente.tel = boxtel.Text;
// System.Windows.Forms.MessageBox.Show(cliente.nome, "title", System.Windows.Forms.MessageBoxButtons.YesNo);
}
}
}
class contatti
{
public string nome;
public string cognome;
public string indirizzo;
public string tel;
public string email;
}