MainForm.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. using ShareWifi.Views;
  11. namespace ShareWifi
  12. {
  13. public partial class MainForm : Form
  14. {
  15. public MainForm()
  16. {
  17. InitializeComponent();
  18. }
  19. private void label3_Click(object sender, EventArgs e)
  20. {
  21. }
  22. private void btnGenerate_Click(object sender, EventArgs e)
  23. {
  24. }
  25. private void btnHome_Click(object sender, EventArgs e)
  26. {
  27. interHome();
  28. }
  29. public void interHome()
  30. {
  31. Home home = Home.getInstance();
  32. plContent.Controls.Clear();
  33. plContent.Controls.Add(home);
  34. }
  35. private void btnAboutMe_Click(object sender, EventArgs e)
  36. {
  37. AboutMe aboutMe = AboutMe.getInstance();
  38. plContent.Controls.Clear();
  39. plContent.Controls.Add(aboutMe);
  40. }
  41. private void btnMini_Click(object sender, EventArgs e)
  42. {
  43. }
  44. private void btnClose_Click(object sender, EventArgs e)
  45. {
  46. Application.Exit();
  47. }
  48. private void MainForm_Load(object sender, EventArgs e)
  49. {
  50. interHome();
  51. }
  52. }
  53. }