示例#1
0
        /// <summary>
        /// Updates data on each timer tick.
        /// </summary>
        /// <param name="sender">The timer that triggered this event.</param>
        /// <param name="e">State information for processing the event.</param>
        public void OnTick(object sender, EventArgs e)
        {
            if (GameConnectHandler.GameConnected)
            {
                GameConnectHandler.Tick(sender, e);

                if (ApiPostHandler.SenderEnabled)
                {
                    ApiPostHandler.Tick(sender, e);
                }
            }
        }
示例#2
0
 /// <summary>
 /// Performs cleanup tasks when the application closes.
 /// </summary>
 /// <param name="sender">The control that triggered this event.</param>
 /// <param name="e">State information for processing the event.</param>
 public void OnExit(object sender, EventArgs e)
 {
     GameConnectHandler.Reset();
 }