private void FinishActivation() { XmlNode license = svc.ActivateLicense(EmailAddress.Text, LicenseList.SelectedItem.Value.ToString(), GetMachineID(), System.Environment.MachineName); string LicenseXML = license.OuterXml; XmlDocument doc = new XmlDocument(); doc.LoadXml(LicenseXML); doc.Save(LicenseFilePath); this.Close(); }