示例#1
0
 /// <summary>
 /// Raises the <see cref="Sort"/> event.
 /// </summary>
 /// <param name="e">
 /// The <see cref="Appleseed.Content.Web.Modules.UDTXSLSortEventArgs"/> instance containing the event data.
 /// </param>
 protected virtual void OnSort(UDTXSLSortEventArgs e)
 {
     if (this.SortCommand != null)
     {
         this.SortCommand(this, e); // Invokes Esperantus.Esperantus.Localize. delegates
     }
 }
示例#2
0
        /// <summary>
        /// Implement Esperantus.Esperantus.Localize. RaisePostBackEvent method from Esperantus.Esperantus.Localize. IPostBackEventHandler interface.
        ///   Define Esperantus.Esperantus.Localize. method of IPostBackEventHandler that raises change events.
        ///   To capture Sorting request issued from XML/XSL data
        /// </summary>
        /// <param name="eventArgument">
        /// A <see cref="T:System.String"/> that represents an optional event argument to be passed to the event handler.
        /// </param>
        public void RaisePostBackEvent(string eventArgument)
        {
            var strEvent = eventArgument.Split('|');

            switch (strEvent[0])
            {
            case "Sort":
            {
                var newEvent = new UDTXSLSortEventArgs(strEvent[1], strEvent[2]);
                this.OnSort(newEvent);
            }

            break;

            case "ShowDetail":
                this.showdetailId = int.Parse(strEvent[1]);

                // UDTXSLShowDetailEventArgs newEvent = new UDTXSLShowDetailEventArgs(strEvent[1]);
                // OnShowDetail(newEvent);
                break;
            }
        }
 /// <summary>
 /// Raises the <see cref="Sort"/> event.
 /// </summary>
 /// <param name="e">
 /// The <see cref="Appleseed.Content.Web.Modules.UDTXSLSortEventArgs"/> instance containing the event data.
 /// </param>
 protected virtual void OnSort(UDTXSLSortEventArgs e)
 {
     if (this.SortCommand != null)
     {
         this.SortCommand(this, e); // Invokes Esperantus.Esperantus.Localize. delegates
     }
 }
        /// <summary>
        /// Implement Esperantus.Esperantus.Localize. RaisePostBackEvent method from Esperantus.Esperantus.Localize. IPostBackEventHandler interface.
        ///   Define Esperantus.Esperantus.Localize. method of IPostBackEventHandler that raises change events.
        ///   To capture Sorting request issued from XML/XSL data
        /// </summary>
        /// <param name="eventArgument">
        /// A <see cref="T:System.String"/> that represents an optional event argument to be passed to the event handler.
        /// </param>
        public void RaisePostBackEvent(string eventArgument)
        {
            var strEvent = eventArgument.Split('|');
            switch (strEvent[0])
            {
                case "Sort":
                    {
                        var newEvent = new UDTXSLSortEventArgs(strEvent[1], strEvent[2]);
                        this.OnSort(newEvent);
                    }

                    break;
                case "ShowDetail":
                    this.showdetailId = int.Parse(strEvent[1]);

                    // UDTXSLShowDetailEventArgs newEvent = new UDTXSLShowDetailEventArgs(strEvent[1]);
                    // OnShowDetail(newEvent);
                    break;
            }
        }