public void Add(PandoraEventHandler eventHandler, Dictionary eventData) { PandoraEventItem newEventItem = new PandoraEventItem(_source, eventHandler, eventData); Bind(newEventItem); _eventList.Add(newEventItem); }
public static void ShowConfirm(string message, string title, string height, string width, PandoraEventHandler okEvent, PandoraEventHandler cancelEvent) { Dialog _dialog = new Dialog(); Literal _litMessage = new Literal(); _litMessage.Id = "litMessage"; _litMessage.Html = message; _dialog.Id = "dlgConfirmBox"; _dialog.CloseOnEscape = false; _dialog.DisableCloseButton = true; _dialog.AddChild(_litMessage); _dialog.Modal = true; _dialog.Height = height; _dialog.Width = width; _dialog.Title = title; DialogButton okButton = new DialogButton(); okButton.Click = delegate(object e, object[] args) { if (okEvent != null) okEvent(e); _dialog.Unload(); }; okButton.Text = "Ok"; DialogButton cancelButton = new DialogButton(); cancelButton.Click = delegate(object e, object[] args) { if (cancelEvent != null) cancelEvent(e, args); _dialog.Unload(); }; cancelButton.Text = "Cancel"; _dialog.Buttons = new DialogButton[] { okButton, cancelButton }; Page.Context.AddChild(_dialog); }
public virtual void SetBind(string name, Dictionary eventData, PandoraEventHandler evnt) { if (IsRendered && evnt != null) { jQueryExtension.Select <jQueryPluginObject>("#" + ControlId).Bind(name, eventData, evnt); } }
public static void ShowAlert(string message, string title, string height, string width, PandoraEventHandler okEvent) { Dialog _dialog = new Dialog(); Literal _litMessage = new Literal(); _litMessage.Id = "litMessage"; _litMessage.Html = message; _dialog.Id = "dlgAlertBox"; _dialog.CloseOnEscape = false; _dialog.DisableCloseButton = true; _dialog.Width = width; _dialog.Height = height; _dialog.Title = title; _dialog.Modal = true; _dialog.AddChild(_litMessage); DialogButton okButton = new DialogButton(); okButton.Click = delegate(object e, object[] args) { if (okEvent != null) { okEvent(e, args); } _dialog.Unload(); }; okButton.Text = "Ok"; _dialog.Buttons = new DialogButton[] { okButton }; Page.Context.AddChild(_dialog); }
/// <summary> /// Attaches a handler for handling the specified event on the matched set of elements. /// </summary> /// <param name="eventName">Name of the event.</param> /// <param name="eventData">The event data.</param> /// <param name="eventHandler">The event handler.</param> /// <returns></returns> public jQueryPluginObject Bind(string eventName, Dictionary eventData, PandoraEventHandler eventHandler) { return(this); }
public PandoraEventItem(object source, PandoraEventHandler evnt, Dictionary eventData) { Source = source; EventHandler = evnt; EventData = eventData; }
public jQueryUIObject Bind(string eventName, Dictionary eventData, PandoraEventHandler eventHandler) { return this; }
public jQueryPluginObject Bind(string eventName, PandoraEventHandler eventHandler) { return this; }
public virtual void SetBind(string name, Dictionary eventData, PandoraEventHandler evnt) { if (IsRendered && evnt != null) { jQueryExtension.Select<jQueryPluginObject>("#" + ControlId).Bind(name, eventData, evnt); } }