private void CommitHelp() { if (this.newHelp.Topic != this.currentHelp.Topic || this.newHelp.Description != this.currentHelp.Description) { this.lastHelp = this.currentHelp; this.currentHelp = newHelp; this.changeTime = DateTime.Now; this.animTimer.Enabled = true; } }
public void UpdateHelp() { this.newHelp = HelpSystem.ActiveHelp ?? advisorHelp; if (this.newHelp == null || this.currentHelp == null || this.newHelp.Topic != this.currentHelp.Topic || this.newHelp.Description != this.currentHelp.Description) { this.commitTimer.Stop(); this.commitTimer.Start(); } if (this.currentHelp == null) { this.currentHelp = this.newHelp; } if (this.lastHelp == null) { this.lastHelp = this.currentHelp; } }