123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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 menbegun : Form
- {
- public menbegun()
- {
- 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();
- }
- }
- }
|