예제 #1
0
 void SetManifestInfoInternal(IManifest manifest)
 {
     lblProductId.Text       = "Product ID: " + manifest.ProductId;
     lblTitle.Text           = "Title: " + manifest.Title;
     lblVersion.Text         = "Version: " + manifest.Version;
     lblPlatformVersion.Text = "Platform version: " + Util.GetEnumDescription(manifest.PlatformVersion);
     lblAuthor.Text          = "Author: " + manifest.Author;
     tbxCapabilities.Clear();
     tbxRequirements.Clear();
     tbxScreenResolutions.Clear();
     tbxFileTypes.Clear();
     tbxURIs.Clear();
     foreach (var capability in manifest.Capabilities)
     {
         tbxCapabilities.AppendText(capability.Id + ": " + capability.Description + "\r\n");
     }
     foreach (var requirement in manifest.Requirements)
     {
         tbxRequirements.AppendText(string.Format("{0}: {1}\r\n", requirement.Id, requirement.Description));
     }
     foreach (var screenResolution in manifest.ScreenResolutions)
     {
         tbxScreenResolutions.AppendText(string.Format("{0}: {1}\r\n", screenResolution.ToString(), Util.GetEnumDescription(screenResolution)));
     }
     if (manifest.PlatformVersion != PlatformVersion.Version71)
     {
         ShowExcessTabs();
         foreach (var fileType in manifest.SupportedFileTypes)
         {
             tbxFileTypes.AppendText(fileType + "\r\n");
         }
         foreach (var uri in manifest.AssociatedURIs)
         {
             tbxURIs.AppendText(uri + "\r\n");
         }
     }
     else
     {
         var requirement = Requirement.GetRequirement("ID_REQ_MEMORY_90");
         tbxRequirements.AppendText(string.Format("{0}: {1}\r\n", requirement.Id, requirement.Description));
         HideExcessTabs();
     }
 }