Beispiel #1
0
        private void RefreshButtons()
        {
            this.buttonOK.Enabled = _fieldControler.IsValid();

            //GWDataDBField f = _fieldControler.GetField();
            //if (f != null)
            //{
            //    foreach (QueryCriteriaItem i in _qcList)
            //    {
            //        if (_isEdit &&
            //            i.GWDataDBField.Table == _qcitem.GWDataDBField.Table &&
            //            i.GWDataDBField.FieldName == _qcitem.GWDataDBField.FieldName)
            //            continue;

            //        if (f.Table == i.GWDataDBField.Table &&
            //            f.FieldName == i.GWDataDBField.FieldName)
            //        {
            //            MessageBox.Show(this, "Field " + i.ToString() + " is already in the list.", "Warning",
            //                MessageBoxButtons.OK, MessageBoxIcon.Information);
            //            this.buttonOK.Enabled = false;
            //            break;
            //        }
            //    }
            //}
        }
Beispiel #2
0
        private void RefreshButtons()
        {
            this.buttonOK.Enabled = _fieldControler.IsValid();

            GWDataDBField f = _fieldControler.GetField();

            if (f != null)
            {
                foreach (ReplacementRuleItem i in Program.ServiceMgt.Config.Replacement.Fields)
                {
                    if (_isEdit &&
                        i.Table == _ruleItem.Table &&
                        i.FieldName == _ruleItem.FieldName)
                    {
                        continue;
                    }

                    if (f.Table == i.Table &&
                        f.FieldName == i.FieldName)
                    {
                        MessageBox.Show(this, "Field " + i.ToString() + " is already in the list.", "Warning",
                                        MessageBoxButtons.OK, MessageBoxIcon.Information);
                        this.buttonOK.Enabled = false;
                        break;
                    }
                }
            }
        }
Beispiel #3
0
 private void RefreshButton()
 {
     this.buttonOK.Enabled = _fieldControler.IsValid();
 }