Beispiel #1
0
        public static TicketItem Deserialize(IDictionary <string, object> dict)
        {
            BorderItem item = new BorderItem();

            DeserializeInto(dict, item);
            return(item);
        }
Beispiel #2
0
        protected new static void DeserializeInto(IDictionary <string, object> dict, TicketItem into)
        {
            BorderItem item = (BorderItem)into;

            TicketItem.DeserializeInto(dict, into);
            item.Thickness = int.Parse(dict["thickness"].ToString());
            item.Width     = int.Parse(dict["width"].ToString());
            item.Height    = int.Parse(dict["height"].ToString());
        }
Beispiel #3
0
        public override TicketItem Clone()
        {
            BorderItem item = new BorderItem();

            copyBaseSettingsInto(item);
            item.Thickness = this.Thickness;
            item.Height    = this.Height;
            item.Width     = this.Width;
            return(item);
        }