예제 #1
0
 public ObjValueLabelHint(string category, Dictionary <string, IEnumerable <string> > valueHints, Dictionary <string, string> LabelHints, DictionaryHint dictionaryHint)
 {
     _category       = category;
     _valueHints     = valueHints;
     _LabelHints     = LabelHints;
     _dictionaryHint = dictionaryHint;
 }
예제 #2
0
        private void Init(Dictionary <string, string> value, DictionaryHint hint)
        {
            if (_control != null)
            {
                return;
            }

            if (value == null)
            {
                return;
            }

            _hint           = hint;
            _control        = new DictionaryCtrl();
            _control.Anchor = UIConst.AutoSize;
            Value           = value;
        }
예제 #3
0
        // To do: test same type / data reload / etc
        /// <summary>
        /// <param name="valueHints">Key => hints or/and Value => hints</param>
        /// <param name="lableHints">Control label</param>
        /// <param name="borderStyle"></param>
        /// </summary>
        public int SetObject(Dictionary <string, string> dictionary, DictionaryHint hint, CellBorderStyle borderStyle)
        {
            _dictionary = dictionary;
            _hint       = (hint != null) ? hint : new DictionaryHint();

            _overarchingPanel.SuspendLayout();
            _overarchingPanel.CellBorderStyle = borderStyle;

            int rowIndex = 0;

            DrawHeader(ref rowIndex);
            DrawData(ref rowIndex);

            if (_allowAddNew)
            {
                DrawStar(ref rowIndex);
            }

            _overarchingPanel.ResumeLayout();
            return(rowIndex);
        }
예제 #4
0
 public DictionaryCtrlBinder(Dictionary <string, string> value, DictionaryHint hint)
 {
     Init(value, hint);
 }