Пример #1
0
        /// <summary>
        /// Create a new instance of the cell.
        /// </summary>
        /// <param name="p_Value">Initial value of the cell.</param>
        /// <param name="p_Editor">Formatters used for string conversion, if null is used a shared default formatter.</param>
        /// <param name="p_VisualModel">Visual properties of the current cell, if null is used a shared default properties.</param>
        public Cell(object p_Value, DataModels.IDataModel p_Editor, VisualModels.IVisualModel p_VisualModel) : this(p_Value)
        {
            DataModel = p_Editor;

            if (p_VisualModel != null)
            {
                VisualModel = p_VisualModel;
            }
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CellVirtual"/> class.
        /// </summary>
        /// <param name="p_Editor">Formatters used for string conversion, if null is used a shared default formatter.</param>
        /// <param name="p_VisualModel">Visual properties of the current cell, if null is used a shared default properties.</param>
        protected CellVirtual(DataModels.IDataModel p_Editor, VisualModels.IVisualModel p_VisualModel)
        {
            DataModel = p_Editor;

            if (p_VisualModel != null)
            {
                VisualModel = p_VisualModel;
            }
            else
            {
                VisualModel = VisualModels.Common.Default;
            }

            BehaviorModels.Add(BehaviorModel.CommonBehaviorModel.Default);
        }
Пример #3
0
 /// <summary>
 /// Cell constructor
 /// </summary>
 /// <param name="p_Value">The value of the cell</param>
 /// <param name="p_Editor">The editor of this cell</param>
 public Cell(object p_Value, DataModels.IDataModel p_Editor) : this(p_Value)
 {
     DataModel = p_Editor;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CellVirtual"/> class.
 /// </summary>
 /// <param name="p_Editor">The editor.</param>
 protected CellVirtual(DataModels.IDataModel p_Editor)
     : this(p_Editor, VisualModels.Common.Default)
 {
     // Do nothing.
 }
Пример #5
0
 /// <summary>
 /// Cell constructor
 /// </summary>
 /// <param name="p_Editor">The editor of this cell</param>
 public CellVirtual(DataModels.IDataModel p_Editor) : this(p_Editor, VisualModels.Common.Default)
 {
 }