Beispiel #1
0
        public void SetExpressionField(string name)
        {
            int i = comboBox1.SelectedIndex;
            QueryExpressionImplementation qei = (from c in QueryExpressionImplementation.QueryExpressionImplementations where c.Name == name select c).FirstOrDefault();

            comboBox1.SelectedIndex = comboBox1.Items.IndexOf(qei);
            if (i == comboBox1.SelectedIndex)
            {
                comboBox1_SelectedIndexChanged(this, EventArgs.Empty);
            }
        }
Beispiel #2
0
        public bool GetExpressionResult(Framework.Data.Geocache gc)
        {
            QueryExpressionImplementation qei = comboBox1.SelectedItem as QueryExpressionImplementation;

            if (qei != null)
            {
                return(qei.ExpressionResult(gc, ExpressionOperator, comboBox2.Text));
            }
            else
            {
                return(false);
            }
        }
Beispiel #3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            QueryExpressionImplementation qei = comboBox1.SelectedItem as QueryExpressionImplementation;

            if (qei != null)
            {
                comboBox3.Items.Clear();
                _availableOps = qei.InitCombo(comboBox2);
                fillOpsCombo();
            }
            else
            {
                comboBox2.Items.Clear();
            }
        }