Пример #1
0
 public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
 {
     _isGlobalInited = true;
     InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);
     //Text = pEnv.translate(Text, pSettings);
     Text = pEnv.translate(Text);
 }
Пример #2
0
        public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
        {
            _isGlobalInited = true;
            images          = pEnv.getImages();

            InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);
        }
Пример #3
0
        public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
        {
            //

            //
            _isGlobalInited = true;
            InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);
            //
        }
Пример #4
0
        public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
        {
            _isGlobalInited = true;
            //
            addNode(pSettings);
            images = pEnv.getImages();

            //
            InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);
            //Text = pEnv.translate(Text, pSettings);
        }
        public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
        {
            _isGlobalInited = true;
            NullText        = string.Empty;
            InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);

            const string attrFormatSet = "FormatSet";
            string       formatSet     = pSettings.getStringAttr(this.Name, attrFormatSet);

            if (formatSet != null && formatSet != string.Empty)
            {
                string formatSetData = pSettings.getString(formatSet);
                if (formatSetData != null && formatSetData != string.Empty)
                {
                    DataTable tab = ToolString.explodeForTable(formatSetData, new string[] { TableDUMMY.LOGICALREF, TableDUMMY.VALUE });
                    pEnv.translate(tab);
                    //ToolColumn.changeType(tab, TableDUMMY.LOGICALREF, this.ValueType);
                    tab.PrimaryKey = new DataColumn[] { tab.Columns[TableDUMMY.LOGICALREF] };
                    FormatInfo     = new FormatFromTable(this.Name, tab, TableDUMMY.VALUE);
                }
            }
        }
Пример #6
0
        //public void writeBindig()
        //{
        //    foreach (Binding b in DataBindings)
        //        if (typeof(DataTable).IsAssignableFrom(b.DataSource.GetType()) && b.IsBinding)
        //            if (b.BindingManagerBase.Current != null &&
        //                b.PropertyName == DSProperty)
        //            {
        //                object dsVal = ((DataRowView)b.BindingManagerBase.Current)[b.BindingMemberInfo.BindingField];
        //                object thisVal = this.GetType().GetProperty(DSProperty).GetValue(this, null);
        //                if (!ToolCell.isNull(thisVal))
        //                    if (!ToolType.isEqual(dsVal, thisVal))
        //                    {
        //                        b.WriteValue();
        //                        b.ReadValue();
        //                    }
        //                b.BindingManagerBase.EndCurrentEdit();
        //            }

        //}


        public virtual void globalRead(IEnvironment pEnv, ISettings pSettings)
        {
            //

            //
            _isGlobalInited = true;
            InitForGlobal.read(this, getGlobalObjactName(), pEnv, pSettings);

            //const string attrDisplaySet = "DisplaySet";
            //string displaySet = pSettings.getStringAttr(this.Name, attrDisplaySet);
            //if (displaySet != null && displaySet != string.Empty)
            //{
            //    string displaySetData = pSettings.getString(displaySet);
            //    if (displaySetData != null && displaySetData != string.Empty)
            //    {
            //        DataTable tab = ToolString.explodeForTable(displaySetData, new string[] { TableDUMMY.LOGICALREF, TableDUMMY.VALUE });
            //        pEnv.translate(tab);
            //        DisplayMember = TableDUMMY.VALUE;
            //        ValueMember = TableDUMMY.LOGICALREF;
            //        DataSource = tab;
            //    }
            //}
        }