/// <summary> /// 窗体加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnAboutFormLoad(object sender, EventArgs e) { this.Icon = WebRunLocal.Properties.Resources.logo; string systemAboutText = "本机IP: "; List <string> ipList = IPUtil.GetIpByLocalAll(); string lisenerPort = ConfigurationManager.AppSettings["ListenerPort"].ToString(); string httpAddress = PublicValue.httpListenerAddress; foreach (string ip in ipList) { systemAboutText += ip + Environment.NewLine; } systemAboutText += Environment.NewLine + "端口: " + lisenerPort + Environment.NewLine; systemAboutText += Environment.NewLine + "地址: " + httpAddress + Environment.NewLine; systemAboutText += Environment.NewLine + "版本: 0.0.1" + Environment.NewLine; LbAboutSystem.Text = systemAboutText; }