Пример #1
0
 private void Sweep_Click(object sender, EventArgs e)
 {
     if (buttonSweep == false)
     {
         buttonSweep = true;
         SweepTimer.Start();
     }
     else if (buttonSweep != false)
     {
         buttonSweep = false;
         SweepTimer.Stop();
     }
 }
Пример #2
0
            public void SweepConnections(object sender, ElapsedEventArgs e)
            {
                var target = Self.Target as CryptoServerChannelSink;

                if (target != null)
                {
                    target.SweepConnections(sender, e);
                    return;
                }

                SweepTimer.Elapsed -= SweepConnections;
                SweepTimer.Stop();
                SweepTimer.Dispose();
            }