Inheritance: System.Windows.Forms.UserControl
Exemple #1
0
        private void Operator_Click(object sender, EventArgs e)
        {
            CplConditionEditor cceEditor = GetSelectedEditor();

            if (cceEditor.ValidateCPL())
            {
                ConditionOperator copOperator = (sender == butAnd) ? ConditionOperator.And : ConditionOperator.Or;
                ViewModel.AddCondition(copOperator, cceEditor.ConditionCPL);
            }
        }
Exemple #2
0
        private void ConditionEditorSelectedChanged(object sender, EventArgs e)
        {
            CplConditionEditor cceSelected = (CplConditionEditor)sender;

            if (!cceSelected.Selected)
            {
                return;
            }
            foreach (CplConditionEditor cceButton in m_lstConditionEditors)
            {
                if (cceButton != cceSelected)
                {
                    cceButton.Selected = false;
                }
            }
        }