Пример #1
0
        protected virtual void OnAttackCompleted(AttackCompletedEventArgs e)
        {
            EventHandler <AttackCompletedEventArgs> handler = AttackCompleted;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 private static void state_OnAttackCompletedCli(object sender, AttackCompletedEventArgs e)
 {
     if (state.ShowTime)
     {
         Console.WriteLine("Total elapsed time: " + state.StopWatch.Elapsed.Seconds);
     }
     if (state.ShowFlood)
     {
         Console.WriteLine("Total flood count: " + state.FloodCount.ToString());
     }
     Environment.Exit(0);
 }