コード例 #1
0
ファイル: LoginControl.cs プロジェクト: mkbiltek2019/Cas
 private void buttonConnect_Click(object sender, EventArgs e)
 {
     LicenseDispatcher.CheckLicenseInformation();
     if (LicenseDispatcher.IsUSBKeyFound)
     {
         StartConnection();
     }
     else
     {
         if (LicenseDispatcher.IsLicenseFound)
         {
             StartConnection();
         }
     }
 }
コード例 #2
0
ファイル: formMain.cs プロジェクト: mkbiltek2019/Cas
 ///<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;
 }