Esempio n. 1
0
 /// <summary>
 /// Initialize
 /// </summary>
 /// <param name="host"></param>
 internal void Initialize(AppletManifest host)
 {
     this.Manifest = host;
     if (this.Menus != null)
     {
         foreach (var itm in this.Menus)
         {
             itm.Initialize(host);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Unpack the package
 /// </summary>
 public AppletManifest Unpack()
 {
     using (MemoryStream ms = new MemoryStream(this.Manifest))
         using (LZipStream gs = new LZipStream(new NonDisposingStream(ms), CompressionMode.Decompress))
             return(AppletManifest.Load(gs));
 }