コード例 #1
0
        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);
        }
コード例 #2
0
 public override bool Ping()
 {
     return(NetworkHelper.PingDevice(Address, Logger));
 }