コード例 #1
0
 /// <summary>
 /// Handles disposal of the window application helper when the domain unloads.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void CurrentDomainUnload(object sender, EventArgs e)
 {
     if (_helper != null)
     {
         _helper.Dispose();
         _helper = null;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the GlobalHotkey class.
 /// </summary>
 public GlobalHotkey()
 {
     Helper = new WindowApplication();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the GlobalHotkey class.
 /// </summary>
 public GlobalHotkey()
 {
     Helper = new WindowApplication();
 }
コード例 #4
0
 /// <summary>
 /// Handles disposal of the window application helper when the domain unloads.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 static void CurrentDomainUnload(object sender, EventArgs e)
 {
     if (_helper != null)
     {
         _helper.Dispose();
         _helper = null;
     }
 }