Пример #1
0
        /// <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;
        }
Пример #2
0
        /// <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;
        }
Пример #3
0
        /// <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;
        }
Пример #4
0
        /// <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;
        }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
        /// <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;
        }
Пример #9
0
 /// <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);
 }
Пример #10
0
 /// <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);
 }
Пример #11
0
 /// <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);
 }