public Target(string name, IPAddress address) { var file = FileHelper.CreateTargetFile(Guid.NewGuid().ToString()); sync = new FileSync(file, name, address); dataPoints = new List <DataPoint>(); }
public Target(FileInfo info) { sync = new FileSync(info); dataPoints = new List <DataPoint>(sync.ReadPoints()); AutoPing = Config.AutoStartPinging; }