Example #1
0
 public void UpdateGesturesListSize()
 {
     GestureBox_1.Invoke(new UpdateGesturesListSizeDelegate(delegate() { GestureBox_1.Enabled = true; GestureBox_1.Size = new System.Drawing.Size(121, 70); }), new object[] { });
     GestureBox_2.Invoke(new UpdateGesturesListSizeDelegate(delegate() { GestureBox_2.Enabled = true; GestureBox_2.Size = new System.Drawing.Size(121, 70); }), new object[] { });
     GestureBox_3.Invoke(new UpdateGesturesListSizeDelegate(delegate() { GestureBox_3.Enabled = true; GestureBox_3.Size = new System.Drawing.Size(121, 70); }), new object[] { });
     GestureBox_4.Invoke(new UpdateGesturesListSizeDelegate(delegate() { GestureBox_4.Enabled = true; GestureBox_4.Size = new System.Drawing.Size(121, 70); }), new object[] { });
 }
Example #2
0
        public void UpdateGesturesToList(string gestureName, int index)
        {
            GestureBox_1.Invoke(new UpdateGesturesToListDelegate(delegate(string name, int cmbIndex)
            {
                GestureBox_1.Items.Add(new Item(name, cmbIndex));
            }),
                                new object[] { gestureName, index }
                                );

            GestureBox_2.Invoke(new UpdateGesturesToListDelegate(delegate(string name, int cmbIndex)
            {
                GestureBox_2.Items.Add(new Item(name, cmbIndex));
            }),
                                new object[] { gestureName, index }
                                );

            GestureBox_3.Invoke(new UpdateGesturesToListDelegate(delegate(string name, int cmbIndex)
            {
                GestureBox_3.Items.Add(new Item(name, cmbIndex));
            }),
                                new object[] { gestureName, index }
                                );

            GestureBox_4.Invoke(new UpdateGesturesToListDelegate(delegate(string name, int cmbIndex)
            {
                GestureBox_4.Items.Add(new Item(name, cmbIndex));
            }),
                                new object[] { gestureName, index }
                                );
        }