Cascade.PanelManager.Add C# (CSharp) Method

Add() public method

public Add ( MusicPanel mp ) : MusicPanel
mp MusicPanel
return MusicPanel
        public MusicPanel Add(MusicPanel mp)
        {
            panels.Add(mp);
            return mp;
        }
        public void Draw(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, RenderTarget2D defaultRenderTarget, int width, int height)

Same methods

PanelManager::Add ( Color baseColor ) : MusicPanel

Usage Example

Ejemplo n.º 1
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;
 }