using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Media; using SPC.Kiosk.Base; namespace SPC.Kiosk.Common.Model { public class M_PopupReturn { public bool OKAnswer { get; set; } public bool TimeOut { get; set; } public SupportLanguageType ReturnLanguage { get; set; } public object PopupArgs { get; set; } } /// /// Button Send Events Args /// public class ItemDropEventArgs { /// /// Send Object /// public object SourceObject { get; set; } = null; /// /// Target Object /// public object TargetObject { get; set; } = null; } public class M_IntroItems { public int ItemsStack { get; set; } = 1; public double StackWidth { get; set; } = double.NaN; public List StackContents { get; set; } = null; } public class M_StackContents { public int ItemsIndex { get; set; } = 0; public List MediaRollItems { get; set; } = null; } /// /// Media Rolling Item Model /// public class M_MediaRollItem { /// /// Media Type Image or VOD /// public MediaType Type { get; set; } = MediaType.None; /// /// Media File Path /// public string MediaPath { get; set; } = string.Empty; /// /// Media Show Running Time Seconds /// public double RunnigSeconds { get; set; } = 0; public bool RepeatMedia { get; set; } public TimeSpan StartTime { get; set; } = default(TimeSpan); public TimeSpan EndTime { get; set; } = default(TimeSpan); public IntroLinkType LinkType { get; set; } = IntroLinkType.None; public string LinkParameter { get; set; } = string.Empty; } /// /// Button List Item Collection /// public class M_ItemData { public int Index { get; set; } = -1; public string ItemCode { get; set; } = string.Empty; public string Category1 { get; set; } = string.Empty; public string Category2 { get; set; } = string.Empty; public M_AnimationButton DataParameter { get; set; } public M_TextBlock BaseTextBlock { get; set; } public M_TextBlock AdditionTextBlock { get; set; } } public class M_AnimationButton { public double Width { get; set; } = double.NaN; public double Height { get; set; } = double.NaN; public Thickness Margin { get; set; } public string NormalBrush { get; set; } = string.Empty; public string DownBrush { get; set; } = string.Empty; public string DisableBrush { get; set; } = string.Empty; public string SwitchOnBrush { get; set; } = string.Empty; public string DragCursorImage { get; set; } = string.Empty; public HotSpotType DragCursorHotSpot { get; set; } = HotSpotType.LeftTop; public Stretch BrushStretch { get; set; } = Stretch.Fill; public bool Enabled { get; set; } = true; public bool Switch { get; set; } public bool AutoToggle { get; set; } public bool ClickSend { get; set; } public string BaseGrid { get; set; } = string.Empty; public string ReciveElement { get; set; } = string.Empty; public ButtonAnimationType ClickAnimationType { get; set; } = ButtonAnimationType.None; public ButtonAnimationType DropAnimationType { get; set; } = ButtonAnimationType.None; public List LanguageText { get; set; } = null; public string Text { get; set; } = string.Empty; public Visibility TextVisible { get; set; } = Visibility.Collapsed; public string TextForeground { get; set; } = string.Empty; public string SwitchOnForeground { get; set; } = string.Empty; public string DisableForeground { get; set; } = string.Empty; public VerticalAlignment TextVerticalAlignment { get; set; } = VerticalAlignment.Center; public HorizontalAlignment TextHorizontalAlignment { get; set; } = HorizontalAlignment.Center; public string TextFontFamily { get; set; } = string.Empty; public double TextFontSize { get; set; } = 12; public FontWeight TextFontWeight { get; set; } = FontWeights.Normal; public TextWrapping TextWrapping { get; set; } = TextWrapping.Wrap; public TextAlignment TextAlignment { get; set; } = TextAlignment.Center; public Thickness TextMargin { get; set; } public bool DragEnable { get; set; } public double CircleSize { get; set; } = 30d; public string CircleBackBrush { get; set; } = string.Empty; public string CircleTextBruch { get; set; } = string.Empty; public string CircleText { get; set; } = string.Empty; public bool CircleOuter { get; set; } public SupportLanguageType DisplayLanguage { get; set; } public List BadgeImages { get; set; } = null; }; /// /// Button List Item Text Box Collection /// public class M_TextBlock { public List LanguageData { get; set; } = null; public double TextSize { get; set; } = 12; public string TextBrush { get; set; } = "Transparent"; public FontWeight TextWeight { get; set; } = FontWeights.Normal; } public class M_MultiLanguage { public string MessageCode { get; set; } public List MessageData {get; set;} } public class M_Language { public SupportLanguageType Type { get; set; } public string LanguageData { get; set; } } }