コード例 #1
0
 /// <summary>
 /// オーバーレイのインスタンスを破棄します。
 /// </summary>
 public virtual void Dispose()
 {
     try
     {
         if (this.timer != null)
         {
             this.timer.Stop();
         }
         if (this.Overlay != null)
         {
             this.Overlay.Close();
             this.Overlay.Dispose();
         }
         if (this.hook != null)
         {
             this.hook.Dispose();
         }
         AutoHide.RemoveOverlay(this.Config);
     }
     catch (Exception ex)
     {
         Log(LogLevel.Error, "Dispose: {0}", ex);
     }
 }
コード例 #2
0
 /// <summary>
 /// オーバーレイの更新を停止します。
 /// </summary>
 public void Stop()
 {
     timer.Stop();
     AutoHide.RemoveOverlay(this.Config);
 }
コード例 #3
0
 /// <summary>
 /// オーバーレイの更新を開始します。
 /// </summary>
 public void Start()
 {
     timer.Start();
     AutoHide.AddOverlay(this.Config, this.Overlay);
 }