@using BeWoPlanerMobil.Service @using BeWoPlanerMobil.Util @using BS.Shared.DataContracts @using BS.Shared.DataContracts.Compact @model DevExpress.XtraScheduler.Appointment @functions { string GetSubjectAndLocation() { var locationPart = false == string.IsNullOrWhiteSpace(Model.Location) ? $" ({Model.Location})" : string.Empty; return $" {Model.Subject}{locationPart}"; } string GetHeaderTime() { return Model.AllDay ? string.Empty : $"{Model.Start.ToShortTimeString()} - {Model.End.ToShortTimeString()}"; } } @{ var background = Model.CustomFields["IsTask"] is true ? "#993B3B" : "#C0FFD0"; var color = Model.CustomFields["IsTask"] is true ? "#FFFFFF" : "#37414D"; }