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); }
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; } }
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; } }
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; } }