Ejemplo n.º 1
0
        public MacroSimple()
        {
            events.Add(new MacroKeyEvent(new MacroKey(0)));
            events.Add(new MacroDelayEvent(0));

            _key   = new MacroKeyEvent(new MacroKey(0));
            _delay = new MacroDelayEvent(0);
        }
Ejemplo n.º 2
0
        private int GetIndexOfRowWithId(DataGridView dataGrid, string id)
        {
            for (int i = 0; i < dataGrid.Rows.Count; i += 1)
            {
                MacroEvent row = dataGrid.Rows[i].DataBoundItem as MacroEvent;

                if (row.getId() == id)
                {
                    return(i);
                }
            }
            return(0);
        }
Ejemplo n.º 3
0
 public void AddEvent(MacroEvent newEvent)
 {
     events.Add(newEvent);
 }
Ejemplo n.º 4
0
 private void MacroAdvance(MacroPlayer m, MacroEventArgs e)
 {
     currentMacroEvent = e.MacroEvent;
 }
Ejemplo n.º 5
0
 public void Reset()
 {
     _key   = new MacroKeyEvent(new MacroKey(0));
     _delay = new MacroDelayEvent(0);
 }
Ejemplo n.º 6
0
 public void SetDelayEvent(MacroEvent delay, long rand = 0)
 {
     _delay = delay;
     _rand  = rand;
 }
Ejemplo n.º 7
0
 public void SetKeyEvent(MacroEvent key)
 {
     _key = key;
 }