Esempio n. 1
0
        public FiltersSection(string name) : base(name)
        {
            InitializeComponent();

            Log.Info("  add Video codec section");
            TabPage    videoTab = new TabPage("Video Codecs");
            MovieCodec mc       = new MovieCodec();

            mc.LoadSettings();
            mc.Dock = DockStyle.Fill;
            mc.OnSectionActivated();
            videoTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
            videoTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
            videoTab.Controls.Add(mc);
            mpTabControl1.TabPages.Add(videoTab);

            Log.Info("  add TV codec section");
            TabPage tvTab = new TabPage("TV Codecs");
            TVCodec tc    = new TVCodec();

            tc.LoadSettings();
            tc.Dock      = DockStyle.Fill;
            tvTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
            tvTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
            tvTab.Controls.Add(tc);
            mpTabControl1.TabPages.Add(tvTab);

            Log.Info("  add DVD Discs/Images codec section");
            TabPage  dvdTab = new TabPage("DVD Discs/Images Codecs");
            DVDCodec dc     = new DVDCodec();

            dc.LoadSettings();
            dc.Dock       = DockStyle.Fill;
            dvdTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
            dvdTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
            dvdTab.Controls.Add(dc);
            mpTabControl1.TabPages.Add(dvdTab);

            Log.Info("  add Renderer section");
            TabPage rendererTab = new TabPage("Video Renderer");
            FiltersVideoRenderer renderConfig = new FiltersVideoRenderer();

            renderConfig.LoadSettings();
            renderConfig.Dock  = DockStyle.Fill;
            rendererTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
            rendererTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
            rendererTab.Controls.Add(renderConfig);
            mpTabControl1.TabPages.Add(rendererTab);
        }
Esempio n. 2
0
    public FiltersSection(string name) : base(name)
    {
      InitializeComponent();

      Log.Info("  add Video codec section");
      TabPage videoTab = new TabPage("Video Codecs");
      MovieCodec mc = new MovieCodec();
      mc.LoadSettings();
      mc.Dock = DockStyle.Fill;
      mc.OnSectionActivated();
      videoTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
      videoTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
      videoTab.Controls.Add(mc);
      mpTabControl1.TabPages.Add(videoTab);

      Log.Info("  add Blu-ray codec section");
      TabPage bdTab = new TabPage("Blu-ray Codecs");
      BDCodec bd = new BDCodec();
      bd.LoadSettings();
      bd.Dock = DockStyle.Fill;
      bd.OnSectionActivated();
      bdTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
      bdTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
      bdTab.Controls.Add(bd);
      mpTabControl1.TabPages.Add(bdTab);

      Log.Info("  add TV codec section");
      TabPage tvTab = new TabPage("TV Codecs");
      TVCodec tc = new TVCodec();
      tc.LoadSettings();
      tc.Dock = DockStyle.Fill;
      tvTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
      tvTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
      tvTab.Controls.Add(tc);
      mpTabControl1.TabPages.Add(tvTab);

      Log.Info("  add DVD Discs/Images codec section");
      TabPage dvdTab = new TabPage("DVD Discs/Images Codecs");
      DVDCodec dc = new DVDCodec();
      dc.LoadSettings();
      dc.Dock = DockStyle.Fill;
      dvdTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
      dvdTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
      dvdTab.Controls.Add(dc);
      mpTabControl1.TabPages.Add(dvdTab);

      Log.Info("  add Renderer section");
      TabPage rendererTab = new TabPage("Video Renderer");
      FiltersVideoRenderer renderConfig = new FiltersVideoRenderer();
      renderConfig.LoadSettings();
      renderConfig.Dock = DockStyle.Fill;
      rendererTab.Enter += new System.EventHandler(OnSectionActivatedWrapper);
      rendererTab.Leave += new System.EventHandler(OnSectionDeActivatedWrapper);
      rendererTab.Controls.Add(renderConfig);
      mpTabControl1.TabPages.Add(rendererTab);
    }