private void FillDeviceStatus() { DeviceStatus.Items.Clear(); string ProcessRunning = TargetDevice.IsProcessRunning() ? "Running" : "Not running"; string Status = string.Format("{0}", NetworkHelper.PingDevice(DeviceConfig.Address, Logger) ? "Online" : "Offline"); string[] row = { Status, ProcessRunning, DeviceConfig.Build.Number, DeviceConfig.Build.Platform, DeviceConfig.Build.Role }; ListViewItem Item = new ListViewItem(row); DeviceStatus.Items.Add(Item); }
public override bool Ping() { return(NetworkHelper.PingDevice(Address, Logger)); }