1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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;
- using ShareWifi.Views;
- namespace ShareWifi
- {
- public partial class MainForm : Form
- {
- HomeControl home;
- AboutMe aboutMe;
- public MainForm()
- {
- InitializeComponent();
- }
- private void label3_Click(object sender, EventArgs e)
- {
- }
- private void btnGenerate_Click(object sender, EventArgs e)
- {
- }
- private void btnHome_Click(object sender, EventArgs e)
- {
- interHome();
- }
- public void interHome()
- {
- if (home == null)
- {
- home = HomeControl.getInstance();
- }
- plContent.Controls.Clear();
- plContent.Controls.Add(home);
- }
- private void btnAboutMe_Click(object sender, EventArgs e)
- {
- if (aboutMe == null)
- {
- aboutMe = AboutMe.getInstance();
- }
- plContent.Controls.Clear();
- plContent.Controls.Add(aboutMe);
- }
- private void btnMini_Click(object sender, EventArgs e)
- {
- }
- private void btnClose_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void MainForm_Load(object sender, EventArgs e)
- {
- interHome();
- }
- }
- }
|