Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (track)
     {
         Mixer.Channel c = new Mixer.Channel(512, textBox1.Text);
         m.m.Channels.Add(c);
         Track t = new Track(m, c);
         m.TC.Add(t);
     }
     else
     {
         Mixer.Bus b = new Mixer.Bus(512, "Bus A");
         m.m.Buses.Add(b);
         Trackb tb = new Trackb(m, b);
         m.TB.Add(tb);
         for (int i = 0; i < m.TC.Count; i++)
         {
             m.TC[i].popOuts();
         }
         for (int i = 0; i < m.TB.Count; i++)
         {
             m.TB[i].popOuts();
         }
     }
     Close();
 }
Ejemplo n.º 2
0
        public Track(Main m, Mixer.Channel mc)
        {
            this.m  = m;
            this.mc = mc;
            InitializeComponent();
            TrackName.Text = mc.name;
            if (mc.preE)
            {
                PPE.BackColor = Color.Lime;
            }
            else
            {
                PPE.BackColor = Color.Red;
            }
            if (mc.preS)
            {
                PPS.BackColor = Color.Lime;
            }
            else
            {
                PPS.BackColor = Color.Red;
            }
            DataGridViewComboBoxColumn Effect = new DataGridViewComboBoxColumn();

            Effect.MaxDropDownItems = 4;
            Effect.Width            = 90;
            Effect.Items.Add("None");
            for (int i = 0; i < m.eff.Count; i++)
            {
                Effect.Items.Add(m.eff[i].GetPluginInfo().name);
            }
            Effects.Columns.Add("e", "e");
            Effects.Columns.Add("e", "e");
            Effects.Columns[0].Width    = 15;
            Effects.Columns[0].ReadOnly = true;
            Effects.Columns[1].Width    = 15;
            Effects.Columns[1].ReadOnly = true;
            Effects.Columns.Add(Effect);
            for (int i = 0; i < 10; i++)
            {
                Effects.Rows.Add("D", "O");
            }
            sends = new DataGridViewComboBoxColumn();
            sends.MaxDropDownItems = 4;
            sends.Width            = 90;
            Sends.Columns.Add("e", "e");
            Sends.Columns[0].Width = 30;
            Sends.Columns.Add(sends);
            for (int i = 0; i < 10; i++)
            {
                Sends.Rows.Add("0");
            }
            Location = new Point(m.x, 27);
            m.x     += 130;
            m.Controls.Add(this);
            popOuts();
        }