Beispiel #1
0
 /// <summary>
 /// Sets <c>_msg</c> color as hexadecimal value, to specified <c>imbAttributeName</c> attribue
 /// </summary>
 /// <param name="_name">Attribute value to be set</param>
 /// <param name="_msg">System color value to be set</param>
 public imbAttribute(imbAttributeName _name, Color _msg)
 {
     name     = _name.ToString();
     nameEnum = _name;
     msg      = ColorWorks.ColorToHex(_msg);
     objMsg   = _msg;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="imbAttribute"/> class.
 /// </summary>
 /// <param name="column_option">The column option.</param>
 /// <param name="setting_value">The setting value.</param>
 public imbAttribute(imbAttributeName _name, templateFieldDataTable column_option, String setting_value)
 {
     nameEnum = imbAttributeName.DataTableExport;
     name     = nameEnum.ToString();
     objExtra = setting_value;
     objMsg   = column_option;
 }
Beispiel #3
0
 public imbAttribute(imbAttributeName _name, Type _msg)
 {
     name     = _name.ToString();
     nameEnum = _name;
     objMsg   = _msg;
     msg      = _msg.Name;
 }
Beispiel #4
0
        //public imbAttribute(imbAttributeName _name, Enum _keyname, String letterOrSufix, String symbolOrName)
        //{
        //}

        /// <summary>To be used with <see cref="templateFieldDataTable"/> enumeration</summary>
        /// <param name="_name">The name.</param>
        /// <param name="_keyname">The keyname.</param>
        /// <param name="letterOrSufix">The letter or sufix.</param>
        /// <param name="symbolOrName">Name of the symbol or.</param>
        /// <param name="formatA">The format a.</param>
        /// <param name="formatB">The format b.</param>
        public imbAttribute(imbAttributeName _name, Enum _keyname, String letterOrSufix, String symbolOrName, String formatA = "", String formatB = "")
        {
            name = _name.ToString();

            nameEnum = _name;

            Tuple <Enum, String, String, String, String> tup = new Tuple <Enum, String, String, String, String>(_keyname, letterOrSufix, symbolOrName, formatA, formatB);

            objMsg = tup;
        }
Beispiel #5
0
        /// <summary>
        /// Bilo sta za msg on ce to pretvoriti u String - zgodno kada treba navesti neki enum
        /// </summary>
        /// <param name="_name"></param>
        /// <param name="_msg"></param>
        public imbAttribute(imbAttributeName _name, Object _msg)
        {
            if (_msg == null)
            {
                msg = "";
            }
            else
            {
                Type msgType = _msg.GetType();

                if (msgType.IsEnum)
                {
                    msg = _msg.getEnumMemberPath(true);
                }
            }
            name     = _name.ToString();
            nameEnum = _name;
            objMsg   = _msg;
        }
Beispiel #6
0
        /// <summary>
        /// Defines calculation expression
        /// </summary>
        /// <param name="operandA">The operand a.</param>
        /// <param name="operaA">The opera a.</param>
        /// <param name="operandB">The operand b.</param>
        /// <param name="operaB">The opera b.</param>
        /// <param name="operandC">The operand c.</param>
        public imbAttribute(operation operaA, String operandA, operation operaAB, String operandB, operation operaBC = operation.none, String operandC = "")
        {
            imbAttributeName _name = imbAttributeName.measure_expression;

            name     = _name.ToString();
            nameEnum = _name;

            measureOperandList oplist = new measureOperandList();

            if (operaA != operation.none)
            {
                oplist.Add(0, operaA, operandA);
            }
            if (operaAB != operation.none)
            {
                oplist.Add(0, operaAB, operandB);
            }
            if (operaBC != operation.none)
            {
                oplist.Add(0, operaBC, operandC);
            }
            objMsg = oplist;
        }
Beispiel #7
0
 /// <summary>
 /// Konstruktor koji koristi Enumeraciju za ime podešavanja na koji se odnosi poruka
 /// </summary>
 /// <param name="_name">Na koje se podešavanje odnosi poruka</param>
 /// <param name="_msg">Vrednost podešavaja</param>
 public imbAttribute(imbAttributeName _name, Int32 _int)
 {
     nameEnum = _name;
     name     = _name.ToString();
     msg      = _int.ToString();
 }
Beispiel #8
0
 public imbAttribute(imbAttributeName _name, Double _min, Double _max, numberRangeModifyRule _mode)
 {
     name     = _name.ToString();
     nameEnum = _name;
     objMsg   = new aceRangeConfig(_min, _max, _mode);
 }
Beispiel #9
0
 public imbAttribute(imbAttributeName _name, Double _min, Double _max, Double _even, rangeCriteriaEnum _mode)
 {
     name     = _name.ToString();
     nameEnum = _name;
     objMsg   = new aceCriterionConfig(_min, _max, _even, _mode);
 }
Beispiel #10
0
 /// <summary>
 /// Konstruktor koji koristi Enumeraciju za ime podešavanja na koji se odnosi poruka
 /// </summary>
 /// <param name="_name">Na koje se podešavanje odnosi poruka</param>
 /// <param name="_msg">Vrednost podešavaja</param>
 public imbAttribute(imbAttributeName _name, string _msg)
 {
     name     = _name.ToString();
     nameEnum = _name;
     msg      = _msg;
 }
Beispiel #11
0
        ///// <summary>
        ///// Postavlja atribut u flag modu - samo ime
        ///// </summary>
        ///// <param name="_name"></param>
        //public imbAttribute(string _name)
        //{
        //    name = _name;
        //    msg = "No data";
        //}

        ///// <summary>
        ///// Postavlja atribut zajedno sa porukom
        ///// </summary>
        ///// <param name="_name">Ime podešavanja na koje se odnosi poruka</param>
        ///// <param name="_msg">Tekst poruke za podešavanje</param>
        //public imbAttribute(string _name, string _msg)
        //{
        //    name = _name;
        //    msg = _msg;
        //    nameEnum = (imbAttributeName) Enum.Parse(typeof(imbAttributeName), _name); // (imbAttributeName) imbEnumExtend.getEnumByName(typeof (imbAttributeName), _name);
        //}

        /// <summary>
        /// Konstruktor koji koristi Enumeraciju za ime podešavanja na koji se odnosi poruka
        /// </summary>
        /// <param name="_name">Na koje se podešavanje odnosi poruka</param>
        /// <param name="_msg">Vrednost podešavaja</param>
        public imbAttribute(imbAttributeName _name)
        {
            name     = _name.ToString();
            nameEnum = _name;
        }