public override IconItemData Convert() { IconItemData data = base.Convert(); data.Image = Properties.Resources.purpleFloder; return(data); }
//public EntityType Type { get; set; } public virtual IconItemData Convert() { IconItemData data = new IconItemData(); data.ID = this.ID; data.PID = this.PID; data.Text = this.Text; return(data); }
public override IconItemData Convert() { IconItemData data = base.Convert(); data.Image = InternalMethods.GetImageByUnitFunctionType(functionType); BDDescriptionAttribute bdDescAttr = EnumAttrDict <UnitFunctionType, BDDescriptionAttribute> .Instance.GetAttribute(functionType); data.Tip = bdDescAttr.Tip; return(data); }
public override IconItemData Convert() { IconItemData data = base.Convert(); if (string.IsNullOrEmpty(ID)) { data.Image = Properties.Resources.greenAdd; } else { data.Image = Properties.Resources.blueFloder; } string descStr = "", updateTimeStr = ""; if (!string.IsNullOrEmpty(this.Desciption)) { descStr = "备注:" + this.Desciption; } if (UpdateTime != null) { updateTimeStr = "更新日期:" + UpdateTime.ToString("yyyy-MM-dd hh:mm"); } if (string.IsNullOrEmpty(descStr) && string.IsNullOrEmpty(updateTimeStr)) { data.Tip = null; } else if (!string.IsNullOrEmpty(descStr) && !string.IsNullOrEmpty(updateTimeStr)) { data.Tip = updateTimeStr + "\r\n" + descStr; } else { data.Tip = updateTimeStr + descStr; } return(data); }