AnlageIP adresse kann nun im Menu geändert werden
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using KlassenBIB;
|
||||
using Microsoft.Win32;
|
||||
using SanShared;
|
||||
using SanSystem.Einstellungen;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
@@ -185,11 +186,12 @@ namespace SanSystem
|
||||
{
|
||||
Ping pingSender = new Ping();
|
||||
PingOptions options = new PingOptions();
|
||||
SoftwareConfiguration softwareConfiguration = new SoftwareConfiguration();
|
||||
|
||||
string data = "aaaaaaaaaaaaa";
|
||||
byte[] buffer = Encoding.ASCII.GetBytes(data);
|
||||
int timeout = 20;
|
||||
PingReply reply = pingSender.Send("192.168.2.248", timeout, buffer, options);
|
||||
PingReply reply = pingSender.Send(softwareConfiguration.GetAnlageIP(), timeout, buffer, options);
|
||||
return reply.Status == IPStatus.Success;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user