예제 #1
0
        private void activar_btn_Click(object sender, EventArgs e)
        {
            ActivationForm form = new ActivationForm();

            form.ShowDialog();
            CheckIfSoftwareActivated();
        }
예제 #2
0
 private void btnActivate_Click(object sender, EventArgs e)
 {
     this.DisableUI();
     try
     {
         using (ActivationForm f = new ActivationForm(this.txtNewRetailServerUrl.Text))
         {
             f.ShowDialog();
             if (f.AppInfo != null)
             {
                 this.currentDeviceActivationInfo = this.appStorage.Add(f.AppInfo);
             }
         }
     }
     finally
     {
         this.RefreshActivationStorageInformation();
         this.RefreshLogOnInformation();
         this.RefreshUI();
     }
 }