/// <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(); }
/// <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(); }