Exemplo n.º 1
0
        override protected void OnInit(EventArgs e)
        {
            base.OnInit(e);

            if (ViewControl != null)
            {
                ViewControl.AppId  = ManagementHelper.GetAppIdFromQueryString();
                ViewControl.ViewId = ManagementHelper.GetViewIdFromQueryString();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            EditSaveControl.SaveChanges += new EventHandler <SaveControl.SaveEventArgs>(EditSaveControl_SaveChanges);

            if (ViewControl != null)
            {
                ViewControl.AppId     = ManagementHelper.GetAppIdFromQueryString();
                ViewControl.ViewId    = ManagementHelper.GetViewIdFromQueryString();
                ViewControl.MDContext = Mediachase.Commerce.Orders.OrderContext.MetaDataContext;
            }
        }