Пример #1
0
        private void lstvCriteria_DoubleClick(object sender, EventArgs e)
        {
            FQueryCriteria frm = new FQueryCriteria(this, criteriaList, criteriaIndex);

            frm.ShowDialog(this);

            lstvCriteria.Items[criteriaIndex].Selected = true;
        }
Пример #2
0
        private void btnCriteriaAdd_Click(object sender, EventArgs e)
        {
            int count = criteriaList.Count;

            FQueryCriteria frm = new FQueryCriteria(this, criteriaList);

            frm.ShowDialog(this);

            if (criteriaList.Count > count)
            {
                criteriaIndex = count;
                lstvCriteria.Items[criteriaIndex].Selected = true;
            }
        }