Example #1
0
 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;
     }
 }
Example #2
0
        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;
        }
Example #3
0
        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;
            }
        }
Example #4
0
 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;
     }
 }