using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace PhoneBook { publi
listview.Items.Clear(); foreach (Vehicle it in vehicle.Values) { ListViewItem item = new ListViewItem(it.LicenseNo); if (it is Car) { item.SubItems.AddRange(new string[]{it.Name ,it.Color,it.DailyRent.ToString (),it.RentDate.ToString (),"无"}); } if
this.IP地址 = new System.Windows.Forms.ColumnHeader(); this.端口 = new System.Windows.Forms.ColumnHeader(); this.状态 = new System.Windows.Forms.ColumnHeader(); this.部门 = new System.Windows.Forms.ColumnHeader(); this.姓名 = new System.Windows.Forms.ColumnHe
/创建StreamReader用于读取txt文件 StreamReader sr = new StreamReader(@"L:\txt读取\txtWenJianDuQu\txtWenJianDuQu\bin\Debug\MP3.txt",Encoding.Default); string s; while ((s=sr.ReadLine())!=null) { ListViewItem item = new ListViewItem(s,0); item.SubItems.Add(s);//
namespace HumanManage { public partial class FrmMain : Form { public static bool CheckFrom = true; public static XmlDocument MydocRoleInfo = new XmlDocument(); public static XmlDocument MydocEmpInfo = new XmlDocument(); private static XmlDocument Em