Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public DictionaryCtrlBinder(Dictionary <string, string> value, DictionaryHint hint)
 {
     Init(value, hint);
 }