Пример #1
0
 public MusicPanel(PanelManager man)
 {
     manager = man;
     clearColor = new ColorManager();
     clearColor.Color = new Color(255,255,255);
     timer = new Timer(1000d / 30d);
     timer.Stop();
     timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
 }
Пример #2
0
 public static PanelManager AddPanelManager(MusicalScaleType musicalScaleType)
 {
     int[] array;
     switch (musicalScaleType)
     {
         default:
             array = PentatonicScale;
             break;
     }
     PanelManager pm = new PanelManager();
     for (int i = 0; i < array.Length; i++)
     {
         pm.Add(new MusicPanel(pm)
             {
                 NoteOffset = array[i]
             });
     }
     PanelManagers.Add(pm);
     return pm;
 }