예제 #1
0
파일: HelpAdvisor.cs 프로젝트: pyneer/case
 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;
     }
 }
예제 #2
0
파일: HelpAdvisor.cs 프로젝트: pyneer/case
        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;
            }
        }