public void Stop(PingInstance pi) { if (pi.Status == PingResultStatus.Running) { pi.Stop(); } }
public ucPingInstance(PingInstance pingInstance) { InitializeComponent(); this.pi = pingInstance; lblTarget.Text = pingInstance.Target.ToString(); lblName.Text = pingInstance.Name; }
public void Start(PingInstance pi) { if (pi.Status != PingResultStatus.Running) { // Task t = Task.Factory.StartNew(() => // { pi.Start(); // }); } }