Beispiel #1
0
        public static void Select(Macro m, ListBox actionList, Button play, Button rec, CheckBox loop)
        {
            if (m == null)
            {
                return;
            }

            m.DisplayTo(actionList);

            if (Recording)
            {
                play.Enabled = false;
                play.Text    = "Play";
                rec.Enabled  = true;
                rec.Text     = "Stop";
            }
            else
            {
                play.Enabled = true;
                if (m.Playing)
                {
                    play.Text   = "Stop";
                    rec.Enabled = false;
                }
                else
                {
                    play.Text   = "Play";
                    rec.Enabled = true;
                }
                rec.Text     = "Record";
                loop.Checked = m.Loop;
            }
        }
Beispiel #2
0
 public void OnMacroStart( Macro m )
 {
     actionList.SelectedIndex = -1;
     macroTree.Enabled = actionList.Enabled = false;
     newMacro.Enabled = delMacro.Enabled = false;
     //macroList.SelectedItem = m;
     macroTree.SelectedNode = FindNode( macroTree.Nodes, m );
     macroTree.Update();
     macroTree.Refresh();
     m.DisplayTo( actionList );
 }
Beispiel #3
0
        public static void Select( Macro m, ListBox actionList, Button play, Button rec, CheckBox loop )
        {
            if ( m == null )
                return;

            m.DisplayTo( actionList );

            if ( Recording )
            {
                play.Enabled = false;
                play.Text = "Play";
                rec.Enabled = true;
                rec.Text = "Stop";
            }
            else
            {
                play.Enabled = true;
                if ( m.Playing )
                {
                    play.Text = "Stop";
                    rec.Enabled = false;
                }
                else
                {
                    play.Text = "Play";
                    rec.Enabled = true;
                }
                rec.Text = "Record";
                loop.Checked = m.Loop;
            }
        }
Beispiel #4
0
 private void RedrawActionList( Macro m )
 {
     int sel = actionList.SelectedIndex;
     m.DisplayTo( actionList );
     actionList.SelectedIndex = sel;
 }