Beispiel #1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     if (_device != null)
     {
         _device.Dispose();
         _device = null;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JavaScriptEngine"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="adminPassword">The admin password.</param>
 public JavaScriptEngine(JediWindjammerDevice device)
 {
     _device = device;
 }