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(); }
void DisableRating() { ReviewWindowEditor.Current.active = false; ReviewWindowEditor.Current.counter = 0; ReviewWindowEditor.Save(); this.Close(); }