Exemple #1
0
        public ZXParameterSet()
        {
            InitializeComponent();

            _detail = _settingManager.SelectTagOrderDefault("BOX");

            if (this._detail == null || this._detail.Count == 0)
            {
                this._setting = null;
            }
            else
            {
                this._setting = this._detail[0];
            }

            this.bindingSource1.DataSource = this._detail;

            this.requireValueExceptions.Add(Model.Setting.PRO_IdNO, new AA(Properties.Resources.NewNumbers, this.txt_Id));
            this.invalidValueExceptions.Add(Model.Setting.PRO_IdNO, new AA(Properties.Resources.EntityExists, this.txt_Id));
            this.invalidValueExceptions.Add(Model.Setting.PRO_Blong, new AA(Properties.Resources.BLongIsNotLessThanZero, this.spe_BLong));
            this.invalidValueExceptions.Add(Model.Setting.PRO_BWidth, new AA(Properties.Resources.BWidthIsNotLessThanZero, this.spe_BWide));
            this.invalidValueExceptions.Add(Model.Setting.PRO_BHeight, new AA(Properties.Resources.BHeigthIsNotLessThanZero, this.spe_BHigh));
            this.action = "view";
        }
Exemple #2
0
 private void Refresh()
 {
     this.list = settingManager.SelectTagOrderDefault("FP");
     this.bindingSource1.DataSource = list;
     this.gridControl1.RefreshDataSource();
 }