Exemplo n.º 1
0
        public CoreInstance OnPing(string Name, string IP, string Mac)
        {
            CoreInstance newDevice = new CoreInstance();

            newDevice.BoardName  = Name;
            newDevice.IpAddress  = IP;
            newDevice.MacAddress = Mac;
            newDevice.LastPing   = DateTime.Now;
            newDevice.Online     = true;
            if (this.Contains(newDevice))
            {
                int i = this.IndexOf(newDevice);

                this[i].LastPing  = DateTime.Now;
                this[i].IpAddress = IP;
                this[i].BoardName = Name;
                this[i].Online    = true;

                BoardTrcData bdTrcData = BoardTrcMonitor.GetBoardTrcData(IP);
                if (bdTrcData != null)
                {
                    this[i].OsVersion   = bdTrcData.PlatInfo_OsBuildLabEx;
                    this[i].BiosVersion = bdTrcData.PlatInfo_SystemBiosVersion;
                    this[i].PlatType    = bdTrcData.PlatInfo_PlatType;
                }
            }
            else
            {
                Add(newDevice);
            }
            return(newDevice);
        }
Exemplo n.º 2
0
 private void OnSystemTrayExit(object sender, EventArgs args)
 {
     BoardTrcMonitor.ShutDownTrcDataMonitor();
     System.Windows.Application.Current.Shutdown();
 }