Esempio n. 1
0
        private void EditQC()
        {
            MWLQueryCriteriaItem item = GetSelectedQCitem();

            if (item == null)
            {
                return;
            }

            FormQCItem frm = new FormQCItem(item, Program.ConfigMgt.Config.AdditionalQueryCriteria);

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            RefreshQCList();
            SelectQCItem(item);
        }
Esempio n. 2
0
        private void AddQC()
        {
            FormQCItem frm = new FormQCItem(null, Program.ConfigMgt.Config.AdditionalQueryCriteria);

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            MWLQueryCriteriaItem item = frm.QCItem;

            if (item == null)
            {
                return;
            }

            Program.ConfigMgt.Config.AdditionalQueryCriteria.Add(item);

            RefreshQCList();
            SelectQCItem(item);
        }