Пример #1
0
        public override void PushEntry(string entry)
        {
            List <string> list;

            switch (this.ParamType)
            {
            case FuncParamType.Array:
            {
                list = ParserTools.StringIntoArray(entry, this.FunctionName);
                ListIntoControl(list);
                break;
            }

            case FuncParamType.ORList:
            {
                list = ParserTools.StringIntoORList(entry, this.FunctionName);
                ListIntoControl(list);
                break;
            }

            case FuncParamType.Mapping:
            {
                Dictionary <string, string> pairs = ParserTools.StringIntoMap(entry, this.FunctionName);
                PairsIntoControl(pairs);
                break;
            }
            }
        }
Пример #2
0
        /// <summary>
        /// Parses a string into it's component parts for use in the control's native format.
        /// </summary>
        public override void PushEntry(string entry)
        {
            EntryList.Items.Clear();
            Entry.Text = "";

            if (this.ParameterType == FuncParamType.Array)
            {
                List <string> temp = ParserTools.StringIntoArray(entry, this.FunctionName);
                ListIntoControl(temp);
            }

            if (this.ParameterType == FuncParamType.ORList)
            {
                List <string> temp = ParserTools.StringIntoORList(entry, this.FunctionName);
                ListIntoControl(temp);
            }
        }