// Token: 0x06000B30 RID: 2864 RVA: 0x00058AF4 File Offset: 0x00056CF4 public static void RemoveAnimationCallback(ThemeShare.AnimationDelegate callback) { List <ThemeShare.AnimationDelegate> callbacks = ThemeShare.Callbacks; lock (callbacks) { if (ThemeShare.Callbacks.Contains(callback)) { ThemeShare.Callbacks.Remove(callback); ThemeShare.InvalidateThemeTimer(); } } }
// Token: 0x06000AF0 RID: 2800 RVA: 0x00058284 File Offset: 0x00056484 private void InvalidateTimer() { if (!this.DesignMode && this.DoneCreation) { if (this._IsAnimated) { ThemeShare.AddAnimationCallback(new ThemeShare.AnimationDelegate(this.DoAnimation)); } else { ThemeShare.RemoveAnimationCallback(new ThemeShare.AnimationDelegate(this.DoAnimation)); } } }
// Token: 0x06000AC0 RID: 2752 RVA: 0x00005BF5 File Offset: 0x00003DF5 protected override void OnHandleDestroyed(EventArgs e) { ThemeShare.RemoveAnimationCallback(new ThemeShare.AnimationDelegate(this.DoAnimation)); base.OnHandleDestroyed(e); }