protected virtual void OnSaved(ControlSavedEventArgs e)
 {
     if (ControlSaved != null)
     {
         ControlSaved(this, e);
     }
 }
Exemple #2
0
 protected void ProfileCartEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
 {
     BindLedger();
     //int tryInt = 0;
     //if (e.PrimaryKeyIndex != null && int.TryParse(e.PrimaryKeyIndex.ToString(), out tryInt))
     BindHistory(); //tryInt);
 }
        protected void UserProfileEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            lblFeedback.Text = "Account Information Saved - " + DateTime.Now.ToString("MM/dd/yyy hh:mm:ss");
            //BindgvwAccounts();
            //UserProfileEdit1.Clear();

            //btnAddNewUser.Visible = true;
            //gvwAccounts.Visible = true;
            //divEdit.Visible = false;
        }
        void PreferenceAdd_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            PreferenceEdit1.Clear();
            BindGrids();

            btnAddNewPreference.Visible = true;
            pnlGrids.Visible            = true;
            divEdit.Visible             = false;
            lblFeedback.Text            = string.Format("Preference saved: {0}", DateTime.Now);
        }
        void MenuEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            lblFeedback.Text      = "Menu saved: " + DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss");
            btnAddNewMenu.Visible = true;
            pnlEditMenu.Visible   = false;
            pnlMenus.Visible      = true;

            MenuEdit1.Clear();
            BindgvwActiveMenus();
        }
        protected void PlanEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            lblFeedback.Text      = "Item saved: " + DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss");
            btnAddNewPlan.Visible = true;
            pnlEditPlan.Visible   = false;
            pnlPlanLists.Visible  = true;

            PlanEdit1.Clear();

            BindBothLists();
        }
        protected void AllergenAdd1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            AllergenEdit1.Clear();
            BindGrids();

            btnAddNewAllergen.Visible = true;
            pnlGrids.Visible          = true;
            divEdit.Visible           = false;

            lblFeedback.Text = string.Format("Allergen saved: {0}", DateTime.Now);
        }
Exemple #8
0
 void PasswordReset1_ControlSaved(object sender, ControlSavedEventArgs e)
 {
     if ((Guid)e.PrimaryKeyIndex != Guid.Empty)
     {
         OnPasswordReset(this, new PasswordResetEventArgs(true));
     }
     else
     {
         OnPasswordReset(this, new PasswordResetEventArgs(false));
     }
 }
Exemple #9
0
        protected void IngredientAdd1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            IngredientEdit1.Clear();
            BindGrids();

            btnAddNewIngredient.Visible = true;
            //rptAlphas.Visible = true;
            pnlGrids.Visible     = true;
            divEdit.Visible      = false;
            lblFeedback.Text     = string.Format("Ingredient saved: {0}", DateTime.Now);
            AplhabetsRow.Visible = true;
        }
        void MenuItem_Edit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            lblFeedback.Text          = "Item saved: " + DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss");
            btnAddNewMenuItem.Visible = true;
            //rptAlphas.Visible = true;
            pnlEditMenuItem.Visible = false;
            pnlMenuLists.Visible    = true;
            AplhabetsRow.Visible    = true;

            MenuItem_Edit1.Clear();
            BindBothLists();
        }
Exemple #11
0
        protected void GiftCertificateEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            GiftCertificateEdit1.Clear();

            BindgvwIssuedCerts();
            BindgvwRedeemedCerts();

            pnlSearch.Visible = true;
            divEdit.Visible   = false;
            pnlGrids.Visible  = true;

            lblFeedback.Text = string.Format("Gift Certificate saved: {0}", DateTime.Now);
        }
Exemple #12
0
        void ProfileLedger1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            if (CurrentUserProfile == null)
            {
                CurrentUserProfile = hccUserProfile.GetById(this.PrimaryKeyIndex);
            }

            if (CurrentUserProfile != null)
            {
                ProfileCartEdit1.PrimaryKeyIndex = CurrentUserProfile.UserProfileID;
                ProfileCartEdit1.Bind();
            }
        }
Exemple #13
0
        protected void CouponEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            CouponEdit1.Clear();

            BindgvwActiveCoupons();
            BindgvwInactiveCoupons();

            btnAddCoupon.Visible = true;
            divEdit.Visible      = false;
            pnlGrids.Visible     = true;

            lblFeedback.Text = string.Format("Coupon saved: {0}", DateTime.Now);
        }
        void ProgramPlanAddToCart1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            ProgramPlanAddToCart1.Clear();
            pnlAlaCarte.Visible    = false;
            pnlProgramPlan.Visible = false;
            pnlGiftCard.Visible    = false;

            btnAddNewItem.Visible  = true;
            pnlAddCartItem.Visible = false;

            this.Clear();
            this.Bind();
            lblFeedback.Text = "Program Plan added to cart: " + DateTime.Now;
        }
Exemple #15
0
        void BillingInfoEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
        {
            if (CurrentUserProfile == null)
            {
                CurrentUserProfile = hccUserProfile.GetParentProfileBy(CurrentAspNetId.Value);
            }

            if (CurrentUserProfile != null)
            {
                CurrentUserProfile.BillingAddressID = BillingInfoEdit1.CurrentBillingAddressID;
                CurrentUserProfile.Save();
            }

            // some profile value changed, make sure order numbers for current cart are still inline with one another
            SessionManager.CurrentUserProfileInfoChanged = true;

            ProfileCartEdit1.Bind();
        }
Exemple #16
0
 protected void SubProfileEdit1_ControlSaved(object sender, ControlSavedEventArgs e)
 {
     SessionManager.CurrentUserProfileInfoChanged = true;
     BindgvwSubProfiles();
 }