private void AddPanel(EncoderConfiguratorCtl panel)
 {
     cmbOutputFormat.Items.Add(panel.EncoderSettings.FormatType);
     panels.Add(panel);
     panel.Visible          = false;
     panel.Dock             = DockStyle.Fill;
     panel.SettingsChanged += new EventHandler(panel_SettingsChanged);
 }
Пример #2
0
 private void AddPanel(EncoderConfiguratorCtl panel)
 {
     cmbOutputFormat.Items.Add(panel.OutputFormat);
     panels.Add(panel);
     panel.Visible = false;
     panel.Dock = DockStyle.Fill;
     pnlEncoderOptions.Controls.Add(panel);
 }
        private void ShowPanel(int index)
        {
            try
            {
                this.SuspendLayout();
                pnlEncoderOptions.SuspendLayout();
                pnlEncoderOptions.Controls.Clear();

                EncoderConfiguratorCtl panel = panels[index];
                if (panel != null)
                {
                    Translator.TranslateControl(panel, false);
                    panel.Visible = true;
                    panel.Dock    = DockStyle.Fill;
                    pnlEncoderOptions.Controls.Add(panel);
                }
            }
            finally
            {
                pnlEncoderOptions.ResumeLayout();
                this.ResumeLayout();
            }
        }