示例#1
0
 private void buttonConnect_Click(object sender, EventArgs e)
 {
     LicenseDispatcher.CheckLicenseInformation();
     if (LicenseDispatcher.IsUSBKeyFound)
     {
         StartConnection();
     }
     else
     {
         if (LicenseDispatcher.IsLicenseFound)
         {
             StartConnection();
         }
     }
 }
示例#2
0
 ///<summary>
 ///Raises the <see cref="E:System.Windows.Forms.Form.Load"></see> event.
 ///</summary>
 ///
 ///<param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data. </param>
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     LicenseDispatcher.CheckLicenseInformation();
     //currentFormSize = Size;
 }