DeploymentTracker.App.Windows.PackageDeployment.ExtractLoadPubSettingsFile C# (CSharp) 메소드

ExtractLoadPubSettingsFile() 개인적인 메소드

Extracts the load pub settings file.
private ExtractLoadPubSettingsFile ( ) : void
리턴 void
        private void ExtractLoadPubSettingsFile()
        {
            XDocument xdoc = XDocument.Load(this.txtPublishSettingsFilePath.Text);
            this.managementCertificateBase64 =
                xdoc.Descendants("PublishProfile").Single().Attribute("ManagementCertificate").Value;
            this.cbxSubscriptions.DataSource = xdoc.Descendants("Subscription").Select(x =>
                                                                                           {
                                                                                               var xAttribute = x.Attribute("Id");
                                                                                               var attribute =
                                                                                                   x.Attribute("Name");
                                                                                               if (attribute != null)
                                                                                                   return (xAttribute != null
                                                                                                               ? new
                                                                                                                     {
                                                                                                                         Id =
                                                                                                                     xAttribute.
                                                                                                                     Value,
                                                                                                                         Name =
                                                                                                                     attribute.
                                                                                                                     Value
                                                                                                                     }
                                                                                                               : null);
                                                                                               return null;
                                                                                           }).ToList();
            this.cbxSubscriptions.DisplayMember = "Name";
            this.cbxSubscriptions.ValueMember = "Id";
        }