Inheritance: SourceGrid.Cells.Editors.EditorControlBase
Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
		/// <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();
		}