Beispiel #1
0
 /// <summary>
 /// 破棄
 /// </summary>
 /// <param name="disposing">破棄フラグ</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _handle != IntPtr.Zero)
     {
         bool b = NativeMethods.KillTimer(_handle, TimerEventId);
         CommunicationWindowManager.DestroyWindow(_handle);
         _handle = IntPtr.Zero;
     }
 }
Beispiel #2
0
 /// <summary>
 /// ハンドル生成
 /// </summary>
 protected void CreateHandle()
 {
     _handle = CommunicationWindowManager.Create(this);
     IntPtr id = NativeMethods.SetTimer(_handle, TimerEventId, 100, IntPtr.Zero);
 }