/// <summary> /// 无控件构造方法 /// </summary> public PanelManager() { //创建获取网卡对象 this.netCards = new NetCards(); //获取所有网卡信息 this.netCardDic = this.netCards.getAllNetCard(); }
public NetCard refreshNetCard(string name) { netcards = new NetCards(); Dictionary <string, NetCard> allNetCardDic = netcards.getAllNetCard(); if (allNetCardDic.ContainsKey(name)) { return(allNetCardDic[name]); } return(null); }
public NetworkDoctor(NetCard netCard, DbManager Db) { //创建网卡对象 this.netCards = new NetCards(); //获取所有网卡字典 this.netCardDic = this.netCards.getAllNetCard(); //设置当前要诊断的网卡 this.netCard = netCard; //设置数据库对象 this.db = Db; //获取对应设置参数 this.localIpDic = this.db.getRow2Dic("pcInfo"); this.pingIpDic = this.db.getDic <string, string>("pingIp", "webName", "ip"); this.sysConfigDic = this.db.getRow2Dic("sysConfig"); }