Exemplo n.º 1
0
        public void AddTab()
        {
            AudioEncodingTab a = new AudioEncodingTab();

            tabs.Add(a);
            a.Dock     = System.Windows.Forms.DockStyle.Fill;
            a.QueueJob = tabs[0].QueueJob;

            TabPage p = new TabPage("Track " + tabs.Count);

            tabControl1.TabPages.Add(p);
            p.Controls.Add(a);
            p.Padding = tabControl1.TabPages[0].Padding;
            a.FileTypeComboBoxSize    = tabs[0].FileTypeComboBoxSize; // has to go after padding
            p.UseVisualStyleBackColor = tabControl1.TabPages[0].UseVisualStyleBackColor;
        }
Exemplo n.º 2
0
        public void AddTab()
        {
            AudioEncodingTab a = new AudioEncodingTab();

            tabs.Add(a);
            a.AudioContainer = MainForm.Instance.Settings.MainAudioFormat;
            a.Dock           = System.Windows.Forms.DockStyle.Fill;
            a.QueueJob       = delegate(AudioJob aJob)
            {
                MainForm.Instance.Jobs.addJobsToQueue(aJob);
            };

            TabPage p = new TabPage("Track " + tabs.Count);

            tabControl1.TabPages.Add(p);
            p.Controls.Add(a);
            p.Padding = tabControl1.TabPages[0].Padding;
            a.FileTypeComboBoxSize    = tabs[0].FileTypeComboBoxSize; // has to go after padding
            p.UseVisualStyleBackColor = tabControl1.TabPages[0].UseVisualStyleBackColor;
        }