Exemplo n.º 1
0
		private void OnKeyDown(DomEvent e)
		{
			if ((Key)e.KeyCode == Key.Backspace || (Key)e.KeyCode == Key.Del)
			{
				this.EventInfo = null;
				this.view.uiEventDisplayDiv.InnerHTML = "";
			}
		}
Exemplo n.º 2
0
		public static string EventFullName(EventInfo ei)
		{
#if SCRIPT
			return ei.name + " on " + ei.date.Format("ddd dd/MM/yyyy") + " @ " + VenueInfo.NameWithPlace(ei.venueInfo);
#else
			return ei.name + " on " + ei.date.ToString("ddd dd/MM/yyyy") + " @ " + VenueInfo.NameWithPlace(ei.venueInfo);
#endif
		}
Exemplo n.º 3
0
		private void EventAdded(EventInfo eventInfo)
		{
			if (eventInfo != null)
			{
				DivElement div = (DivElement) Document.CreateElement("div");
				div.ClassName = "CalendarItemToday";
				div.InnerHTML = String.Format("<b>{0}</b>", eventInfo.name);
				clicked.InsertBefore(div);
				clicked = null;
			}
		}
Exemplo n.º 4
0
		private void OnEventCreated(EventInfo eventInfo)
		{
			this.EventInfo = eventInfo;
			if (eventInfo != null)
			{
				this.view.uiEventDisplayDiv.InnerHTML = Suggestion.GetPicTitleDetailTemplateHtml(eventInfo.picPath, eventInfo.name, VenueInfo.NameWithPlace(eventInfo.venueInfo));
			}
			else
			{
				this.view.uiEventDisplayDiv.InnerHTML = emptyHtml;
			}
		}
Exemplo n.º 5
0
		public void CreateEventUsingEventInfo(EventInfo eventInfo, EventInfoCallback callback)
		{
			if (eventInfo == null)
			{
				this.ShowPopup(null, null, null, callback);
			}
			else
			{
				this.ShowPopup(eventInfo.date, eventInfo.venueInfo, eventInfo.name, callback);
			}
		}
Exemplo n.º 6
0
		private void AddEventSuccess(EventInfo result, object userContext, string methodName)
		{
			EventChosen(result);
		}
Exemplo n.º 7
0
		private void EventChosen(EventInfo chosenEvent)
		{
			this.view.uiContainer.Style.Display = "none";
			callback(chosenEvent);
		}