19.1.3-ctp

This commit is contained in:
Alexander Mikhailov
2019-05-16 10:20:43 +03:00
committed by GitHub
parent 2e45b5d38f
commit a2371dfb0b
187 changed files with 32565 additions and 3985 deletions

View File

@@ -0,0 +1,28 @@
using DevExpress.Utils;
using DevExpress.XtraEditors.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Drawing;
using System.Linq;
using System.Runtime.Serialization;
namespace DevExpress.DevAV {
public class Crest : DatabaseObject {
public string CityName { get; set; }
public byte[] SmallImage { get; set; }
public byte[] LargeImage { get; set; }
public virtual ICollection<CustomerStore> CustomerStores { get; set; }
Image img;
public Image LargeImageEx {
get {
if(img == null)
if(LargeImage == null)
return ResourceImageHelper.CreateImageFromResourcesEx("DevExpress.DevAV.Resources.Unknown-user.png", typeof(Employee).Assembly);
else
img = ByteImageConverter.FromByteArray(LargeImage);
return img;
}
}
}
}