Exemplo n.º 1
0
        public bool FillInstrumentTreeNode(int instrument)
        {
            InstrumentData instrumentData = GlobalInstrumentData[instrument];

            foreach (InstrumentLine line in instrumentData.lines)
            {
                TreeNode currentInstrument = new TreeNode(line.code);
                foreach (int vg in line.vg)
                {
                    TreeNode currentVg = new TreeNode(voicegroupFilesComboBox.Items[vg].ToString().Remove(0, 19).Remove(13));
                    currentInstrument.Nodes.Add(currentVg);
                }
                instrumentsTreeView.Nodes.Add(currentInstrument);
            }

            return(true);
        }
Exemplo n.º 2
0
 public bool InitInstrumentData()
 {
     instrumentsComboBox.SelectedIndex = 0;
     foreach (string instrument in GlobalInstrumentsList)
     {
         InstrumentData instrumentData = new InstrumentData();
         instrumentData.id = GlobalInstrumentsList.IndexOf(instrument);
         List <InstrumentLine> lines = new List <InstrumentLine>();
         foreach (InstrumentLine line in lines)
         {
             List <int> vgs = new List <int>();
             line.vg = vgs;
         }
         instrumentData.lines = lines;
         GlobalInstrumentData.Add(instrumentData);
     }
     return(true);
 }