using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using ShareWifi.Utils.Net; namespace ShareWifi.Views { public partial class Home : UserControl { public Home() { InitializeComponent(); } public static Home getInstance() { return new Home(); } private void btnGenerate_Click(object sender, EventArgs e) { string ssid = WifiUtils.getSSID(); if (ssid != "" || ssid != null) { //查找密码 string v = WifiUtils.getSSDIPassword(ssid); //生成二维码 } } } }