Esempio n. 1
0
            private void _read()
            {
                _label = ((Gif.ExtensionLabel)m_io.ReadU1());
                switch (Label)
                {
                case Gif.ExtensionLabel.Application: {
                    _body = new ExtApplication(m_io, this, m_root);
                    break;
                }

                case Gif.ExtensionLabel.Comment: {
                    _body = new Subblocks(m_io, this, m_root);
                    break;
                }

                case Gif.ExtensionLabel.GraphicControl: {
                    _body = new ExtGraphicControl(m_io, this, m_root);
                    break;
                }

                default: {
                    _body = new Subblocks(m_io, this, m_root);
                    break;
                }
                }
            }
Esempio n. 2
0
 private static void AddDesktopCompatibilityPlatform(IServiceCollection services, EntryPoint entryPoint)
 {
     services.AddScoped <ICommandFactory>((serviceProvider) =>
     {
         var refTransversal = serviceProvider.GetService <IReferenceTraversalService>();
         var cmdFactory     = new CommandFactory(refTransversal);
         cmdFactory.RegisterCommand("AppRefresh", (receiver, args) =>
         {
             return(new Mobilize.Web.UI.Commands.ApplicationRefreshCommand(refTransversal)
             {
                 Receiver = receiver, Name = CommandNames.ApplicationRefresh, Arguments = args
             });
         });
         return(cmdFactory);
     });
     services.AddScoped <IApplication>((provider) =>
     {
         var app = new ExtApplication(provider)
         {
             EntryPoint = entryPoint
         };
         return(app);
     });
     services.AddTransient <IBackgroundWorkerManager, BackgroundWorkerManager>();
 }
Esempio n. 3
0
 public AvsPlugin(string toolName, string downloadurl, string category, ExtApplication aviSynth, string localVersion)
 {
     this.toolName = toolName;
     this.localVersion = localVersion;
     this.downloadPath = downloadurl;
     this.category = category;
     this.aviSynth = aviSynth;
     
 }