private static void TimerObserver_Tick(object sender, EventArgs e)
        {
            try {
                CurrentTime += TimeSpan.FromSeconds(1);

                if (CurrentTime == TimeForCheck)
                {
                    if (IsUserActive && !IsAdvertisingShowing)
                    {
                        HideAdvertising?.Invoke(TimerObserver, new EventArgs());
                    }
                    else
                    {
                        IsAdvertisingShowing = true;
                        ShowAdvertising?.Invoke(TimerObserver, new EventArgs());
                    }

                    IsUserActive = false;
                    CurrentTime  = new TimeSpan(0, 0, 0);
                }
            }
            catch (Exception ex)
            {
                App.SendException(ex);
            }
        }
 private static void HookComplited()
 {
     if (IsAdvertisingShowing)
     {
         HideAdvertising?.Invoke(TimerObserver, new EventArgs());
         IsAdvertisingShowing = false;
     }
     IsUserActive = true;
 }
 private static void HookComplited()
 {
     try
     {
         if (IsAdvertisingShowing)
         {
             HideAdvertising?.Invoke(TimerObserver, new EventArgs());
             IsAdvertisingShowing = false;
         }
         IsUserActive = true;
     }
     catch (Exception ex)
     {
         App.SendException(ex);
     }
 }