using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MarathonSkills2016Le { public partial class coordinator : Form { public coordinator() { InitializeComponent(); } private void label4_Click(object sender, EventArgs e) { Timer timer = new Timer(); timer.Interval = 5000; timer.Enabled = true; timer.Tick += new EventHandler(label4_Click); label4.Text = DateTime.Now.ToShortDateString() + ", " + DateTime.Now.ToLongTimeString(); } private void button6_Click(object sender, EventArgs e) { Main sf = new Main(); sf.Owner = this; sf.Show(); this.Hide(); } private void button3_Click(object sender, EventArgs e) { login sf = new login(); sf.Owner = this; sf.Show(); this.Hide(); } } }