/// <summary> /// Initializes a new instance of the <see cref="ExpandCell"/> class. /// </summary> /// <param name="p_expand">if set to <c>true</c> cell is expanded.</param> public ExpandCell(bool p_expand) { childCells = new List<ICellVirtual>(); ExpandedCell = false; DataModel = new DataModels.DataModelBase(typeof(bool)); VisualModel = VisualModels.ExpandCell.Default; BehaviorModels.Add(BehaviorModel.ExpandCellBehaviorModel.Default); Value = p_expand; IsLastExpandedCell = false; }
/// <summary> /// Construct a BitmapCell class with caption and align checkbox in the MiddleLeft /// </summary> /// <param name="p_Caption">The caption.</param> /// <param name="p_InitialValue">The initial value.</param> public BitmapCell(string p_Caption, Bitmap p_InitialValue) { captionText = p_Caption; DataModel = new DataModels.DataModelBase(typeof(Image)); if (p_Caption == null || p_Caption.Length <= 0) { VisualModel = VisualModels.BitmapCell.Default; } else { VisualModel = VisualModels.BitmapCell.MiddleLeftAlign; } BehaviorModels.Add(BehaviorModel.BitmapCellBehaviorModel.Default); Value = p_InitialValue; IsLastExpandedCell = false; }
/// <summary> /// Initializes a new instance of the <see cref="CheckBoxCell"/> class. /// </summary> /// <param name="p_Caption">The caption.</param> /// <param name="p_InitialValue">if set to <c>true</c> initial value is true.</param> /// <remarks> /// Construct a CellCheckBox class with caption and align checkbox in the MiddleLeft /// </remarks> public CheckBoxCell(string p_Caption, bool p_InitialValue) { caption = p_Caption; DataModel = new DataModels.DataModelBase(typeof(bool)); if (p_Caption == null || p_Caption.Length <= 0) { VisualModel = VisualModels.CheckBox.Default; } else { VisualModel = VisualModels.CheckBox.MiddleLeftAlign; } BehaviorModels.Add(BehaviorModel.CheckBoxBehaviorModel.Default); Value = p_InitialValue; IsLastExpandedCell = false; EnableEdit = true; EditableMode = EditableModes.None; }
/// <summary> /// Initializes a new instance of the <see cref="ExpandCell"/> class. /// </summary> protected ExpandCell() { DataModel = new DataModels.DataModelBase(typeof(bool)); VisualModel = VisualModels.ExpandCell.Default; BehaviorModels.Add(BehaviorModel.ExpandCellBehaviorModel.Default); }
/// <summary> /// Initializes a new instance of the <see cref="BitmapCell"/> class. /// </summary> protected BitmapCell() { DataModel = new DataModels.DataModelBase(typeof(Image)); VisualModel = VisualModels.BitmapCell.Default; BehaviorModels.Add(BehaviorModel.BitmapCellBehaviorModel.Default); }
/// <summary> /// Initializes a new instance of the <see cref="CheckBoxCell"/> class. /// </summary> protected CheckBoxCell() { DataModel = new DataModels.DataModelBase(typeof(bool)); VisualModel = VisualModels.CheckBox.Default; BehaviorModels.Add(BehaviorModel.CheckBoxBehaviorModel.Default); }