spons.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace MarathonSkills2016Le
  11. {
  12. public partial class spons : Form
  13. {
  14. public spons()
  15. {
  16. InitializeComponent();
  17. }
  18. private void label15_Click(object sender, EventArgs e)
  19. {
  20. Timer timer = new Timer();
  21. timer.Interval = 5000;
  22. timer.Enabled = true;
  23. timer.Tick += new EventHandler(label15_Click);
  24. label15.Text = DateTime.Now.ToShortDateString() + ", " + DateTime.Now.ToLongTimeString();
  25. }
  26. private void button3_Click(object sender, EventArgs e)
  27. {
  28. Main sf = new Main();
  29. sf.Owner = this;
  30. sf.Show();
  31. this.Hide();
  32. }
  33. private void button2_Click(object sender, EventArgs e)
  34. {
  35. verifispons sf = new verifispons();
  36. sf.Owner = this;
  37. sf.Show();
  38. this.Hide();
  39. }
  40. private void textBox2_TextChanged(object sender, EventArgs e)
  41. {
  42. }
  43. private void textBox7_TextChanged(object sender, EventArgs e)
  44. {
  45. }
  46. }
  47. }