using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
namespace SmartDeviceProject1
{
public partial class TestSpiel : Form
{
#region Declarationen
DateTime StartZeit;
int i;
#endregion
public TestSpiel()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Warum geht der Misst nicht?", "Manno", MessageBoxButtons.OK, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
}
private void TestSpiel_Load(object sender, EventArgs e)
{
StartZeit = DateTime.Now.AddHours(0).AddMinutes(0).AddSeconds(5);
timer1.Enabled = true;
this.Text="Manno";
}
private void timer1_Tick(object sender, EventArgs e)
{
DateTime StundeNull;
TimeSpan Diff;
StundeNull = DateTime.Now;
Diff = StartZeit - StundeNull;
i++;
label1.Text = i.ToString();
}
}
}