Esempio n. 1
0
 void DisableRating()
 {
     ReviewWindowEditor.Current.active  = false;
     ReviewWindowEditor.Current.counter = 0;
     ReviewWindowEditor.Save();
     this.Close();
 }
Esempio n. 2
0
        static void Count()
        {
            if (!ReviewWindowEditor.Current.active)
            {
                return;
            }
            double time = GenerateUnixTime();
            double diff = time - ReviewWindowEditor.Current.lastCheck;

            if (diff < 20)
            {
                return;
            }
            ReviewWindowEditor.Current.lastCheck = time;
            ReviewWindowEditor.Current.counter++;
            if (ReviewWindowEditor.Current.counter > 7)
            {
                Init();
                ReviewWindowEditor.Current.counter = 0;
            }
            ReviewWindowEditor.Save();
        }