Ejemplo n.º 1
0
        public EventPushpin(EventDetails ev)
            : base()
        {
            if (!string.IsNullOrWhiteSpace(ev.Name))
            {
                ToolTip = string.Format("{0}{1} ({2})",
                                        ((ev.FlagsEnum & EventFlagType.GroupEvent) == EventFlagType.GroupEvent ? "[Group Event] " : string.Empty),
                                        ev.Name, ev.Level);

                PopupContent = new PopupContentFactory()
                               .AppendWikiLink(ev.Name)
                               .Content;
            }

            if (ev.FlagsEnum == EventFlagType.None)
            {
                m_PreparationImage = IMAGES[EventFlagType.None][0];
                m_ActiveImage      = IMAGES[EventFlagType.None][1];
            }
            else if ((ev.FlagsEnum & EventFlagType.GroupEvent) == EventFlagType.GroupEvent)
            {
                m_PreparationImage = IMAGES[EventFlagType.GroupEvent][0];
                m_ActiveImage      = IMAGES[EventFlagType.GroupEvent][1];
            }

            SetEventState(EventStateType.Invalid);
        }
Ejemplo n.º 2
0
        public EventPushpin(EventDetails ev)
            : base()
        {
            if (!string.IsNullOrWhiteSpace(ev.Name))
            {
                ToolTip = string.Format("{0}{1} ({2})",
                        ((ev.FlagsEnum & EventFlagType.GroupEvent) == EventFlagType.GroupEvent ? "[Group Event] " : string.Empty),
                        ev.Name, ev.Level);

                PopupContent = new PopupContentFactory()
                        .AppendWikiLink(ev.Name)
                        .Content;
            }

            if (ev.FlagsEnum == EventFlagType.None)
            {
                m_PreparationImage = IMAGES[EventFlagType.None][0];
                m_ActiveImage = IMAGES[EventFlagType.None][1];
            }
            else if ((ev.FlagsEnum & EventFlagType.GroupEvent) == EventFlagType.GroupEvent)
            {
                m_PreparationImage = IMAGES[EventFlagType.GroupEvent][0];
                m_ActiveImage = IMAGES[EventFlagType.GroupEvent][1];
            }

            SetEventState(EventStateType.Invalid);
        }
Ejemplo n.º 3
0
        public TaskPushpin(Task task)
            : base()
        {
            Image = IMAGE;

            if (!string.IsNullOrWhiteSpace(task.Objective))
            {
                ToolTip = string.Format("{0} ({1})", task.Objective, task.Level);

                PopupContent = new PopupContentFactory()
                               .AppendWikiLink(task.Objective)
                               .Content;
            }
        }
Ejemplo n.º 4
0
        public TaskPushpin(Task task)
            : base()
        {
            Image = IMAGE;

            if (!string.IsNullOrWhiteSpace(task.Objective))
            {
                ToolTip = string.Format("{0} ({1})", task.Objective, task.Level);

                PopupContent = new PopupContentFactory()
                        .AppendWikiLink(task.Objective)
                        .Content;
            }
        }
Ejemplo n.º 5
0
        public PointOfInterestPushpin(PointOfInterest poi)
            : base()
        {
            if (IMAGES.ContainsKey(poi.TypeEnum))
                Image = IMAGES[poi.TypeEnum];

            if (!string.IsNullOrWhiteSpace(poi.Name))
            {
                ToolTip = poi.Name;

                PopupContent = new PopupContentFactory()
                        .AppendWikiLink(poi.Name)
                        .AppendChatCode(ChatCode.CreateMapLink((uint)poi.PoiId))
                        .Content;
            }
        }
Ejemplo n.º 6
0
        public PointOfInterestPushpin(PointOfInterest poi)
            : base()
        {
            if (IMAGES.ContainsKey(poi.TypeEnum))
            {
                Image = IMAGES[poi.TypeEnum];
            }

            if (!string.IsNullOrWhiteSpace(poi.Name))
            {
                ToolTip = poi.Name;

                PopupContent = new PopupContentFactory()
                               .AppendWikiLink(poi.Name)
                               .AppendChatCode(ChatCode.CreateMapLink((uint)poi.PoiId))
                               .Content;
            }
        }