Exemple #1
0
 public void Stop(PingInstance pi)
 {
     if (pi.Status == PingResultStatus.Running)
     {
         pi.Stop();
     }
 }
Exemple #2
0
        public ucPingInstance(PingInstance pingInstance)
        {
            InitializeComponent();
            this.pi = pingInstance;

            lblTarget.Text = pingInstance.Target.ToString();
            lblName.Text = pingInstance.Name;
        }
Exemple #3
0
 public void Start(PingInstance pi)
 {
     if (pi.Status != PingResultStatus.Running)
     {
        // Task t = Task.Factory.StartNew(() =>
        // {
             pi.Start();
        // });
     }
 }