private void activar_btn_Click(object sender, EventArgs e) { ActivationForm form = new ActivationForm(); form.ShowDialog(); CheckIfSoftwareActivated(); }
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(); } }