private void ShowComboBox() { cB_execution.Items.Clear(); if (!m_gestures[m_comboItem.Index].IsImplicitOnly) { cB_execution.Items.AddRange(m_cbItems.ToArray()); } else { cB_execution.Items.Add(m_cbItems[0]); } cB_execution.Show(); //cB_execution.Text = m_comboItem.SubItems[m_comboColumnIndex].Text; cB_execution.SelectedIndex = ConvertValue.PriorityToIndex(m_gestures[m_comboItem.Index].ExecutionType); cB_execution.SelectAll(); cB_execution.Focus(); }
private void SetValues() { cB_priority.Items.Clear(); if (!m_tempGesture.IsImplicitOnly) { for (int i = 0; i < ConvertValue.PrioritiesCount; i++) { cB_priority.Items.Add(Translation.GetPriorityText(ConvertValue.IndexToPriority(i))); } } else { cB_priority.Items.Add(Translation.GetPriorityText(ConvertValue.IndexToPriority(0))); m_tempGesture.ExecutionType = ExecuteType.Implicit; } cB_priority.SelectedIndex = ConvertValue.PriorityToIndex(m_tempGesture.ExecutionType); }