示例#1
0
文件: Image.cs 项目: zhuangyy/Motion
        /// <summary>
        /// Constructor using a ValueImage model to read he image directly from the value of the cell.
        /// </summary>
        public Image(object value)
            : base(value)
        {
            //First I remove the old IImage model that the Cell use to link the Image property to an external value.
            Model.RemoveModel(Model.FindModel(typeof(Models.Image)));

            //Then I add a new IImage model that takes the image directly from the value.
            Model.AddModel(Models.ValueImage.Default);
            Editor = new Editors.ImagePicker();
        }
示例#2
0
 /// <summary>
 /// Constructor using a ValueImage model to read he image directly from the value of the cell.
 /// </summary>
 public Image()
 {
     Model.AddModel(Models.ValueImage.Default);
     Editor = new Editors.ImagePicker();
 }
示例#3
0
文件: Image.cs 项目: zhuangyy/Motion
 /// <summary>
 /// Constructor using a ValueImage model to read he image directly from the value of the cell.
 /// </summary>
 public Image()
 {
     Model.AddModel(Models.ValueImage.Default);
     Editor = new Editors.ImagePicker();
 }