Beispiel #1
0
        private void buttonMarkerAdd_Click(object sender, EventArgs e)
        {
            if (flaga_mark == false && _touchlessMgr.MarkerCount > 0)
            {
                Mark = null;
                _touchlessMgr.RemoveMarker(0);
                ilosc_markerow       = 0;
                flaga_mark           = true;
                buttonMarkerAdd.Text = "Dodaj Marker";

                CurrTime    = DateTime.Now;
                flaga_mouse = false;

                btMouse.Text = "Przechwytywanie myszy";

                //_fAddingMarker = false;

                checkBoxMarkerHighlight.Enabled = false;
                checkBoxMarkerSmoothing.Enabled = false;
            }
            else
            {
                _fAddingMarker       = true;
                buttonMarkerAdd.Text = "Usun Marker";

                _fUpdatingMarkerUI = true;
                //   checkBoxMarkerHighlight.Checked = _markerSelected.Highlight;
                //   checkBoxMarkerSmoothing.Checked = _markerSelected.SmoothingEnabled;
                //    _fUpdatingMarkerUI = false;
                flaga_mark = false;

                checkBoxMarkerHighlight.Enabled = true;
                checkBoxMarkerSmoothing.Enabled = true;
            }
        }
Beispiel #2
0
 private void buttonMarkerRemove_Click(object sender, EventArgs e)
 {
     touchlessMgr.RemoveMarker(comboBoxMarkers.SelectedIndex);
     comboBoxMarkers.Items.RemoveAt(comboBoxMarkers.SelectedIndex);
     comboBoxMarkers.SelectedIndex = -1;
     comboBoxMarkers.Text          = "Edit An Existing Marker";
     groupBoxMarkerControl.Enabled = false;
     groupBoxMarkerControl.Text    = "No Marker Selected";
     if (comboBoxMarkers.Items.Count == 0)
     {
         comboBoxMarkers.Enabled = false;
     }
 }