private void buttonConnect_Click(object sender, EventArgs e) { LicenseDispatcher.CheckLicenseInformation(); if (LicenseDispatcher.IsUSBKeyFound) { StartConnection(); } else { if (LicenseDispatcher.IsLicenseFound) { StartConnection(); } } }
///<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; }