Example #1
0
 protected void OnBeatControlSelect(SelectEventArgs e)
 {
     if (BeatControlSelect != null)
     {
         BeatControlSelect(this, e);
     }
 }
Example #2
0
 public bool this[int ndx]
 {
     get { return(m_Ticks[ndx]); }
     set
     {
         if (value != m_Ticks[ndx])
         {
             SelectEventArgs e = new SelectEventArgs(ndx, value);
             OnBeatControlSelect(e);
             if (!e.Cancel)
             {
                 m_Ticks[ndx] = value;
                 using (Graphics g = CreateGraphics())
                     PaintTick(ndx, g);
             }
         }
     }
 }