示例#1
0
 public void NewLine()
 {
     var row = new VIMFormRow(this, _defaultConstraint);
     Children.Add(row);
     _rows.Add(row);
     _editingFieldIndex++;
 }
示例#2
0
        public VIMFormControl(IVIMActionController container)
        {
            var row = new VIMFormRow(this, _defaultConstraint);
            _rows = new List<VIMFormRow> {row};
            Children.Add(row);

            Orientation = Orientation.Vertical;
            VerticalAlignment = VerticalAlignment.Top;

            container.EnterInsertMode(CharacterInsertMode.Before);
        }
示例#3
0
 public void Navigate(List<KeyValuePair<string, string>> obj)
 {
     Children.Clear();
     obj
         .Select(row =>
                     {
                         var vimRow = new VIMFormRow(this, _defaultConstraint)
                                          {
                                              FieldName = {Text = row.Key},
                                              Value = {Text = row.Value}
                                          };
                         return vimRow;
                     })
         .Do(vimRow => Children.Add(vimRow));
 }