Esempio n. 1
0
 protected override void SetNavigationState()
 {
     try
     {
         if (_NavigationState != null)
         {
             SessionManager.Set <NavigationState>(enumSessionKeys.NavCardPruchase, this.NavigationState);
         }
         else
         {
             _NavigationState = new NavigationState();
             SessionManager.Set <NavigationState>(enumSessionKeys.NavCardPruchase, _NavigationState);
         }
     }
     catch (Exception ex)
     {
         if (!ExceptionHandler.IsUserFriendly(ex))
         {
             ex.Data.Add("CardPurchaseNavigation", "SetNavigationState");
             ExceptionHandler.handle(ex);
         }
         else
         {
             throw ex;
         }
     }
 }
Esempio n. 2
0
        protected abstract void SetNavigationState();                                               // Public method used to set navigation state into session.

        protected void InitializeME()
        {
            // Get current logged on user GUID.
            Guid lCurrLoggedOnUserID = AccountAdministrationManager.GetCurrentUserID();

            // Get current  logged on user name from session.
            string lUserName = string.Empty;

            lUserName = AccountAdministrationManager.GetCurrentUserName();

            // create navigation state object.
            if (lCurrLoggedOnUserID == Guid.Empty || lUserName == string.Empty)
            {
                _NavigationState = new NavigationState();
            }
            else
            {
                _NavigationState = new NavigationState(lCurrLoggedOnUserID, lUserName);

                // Try update navigation state contact data.
                this.UpdateNavigationStateContactData();
            }
        }
 /// <summary>
 /// Method Name: SetNavigationState.
 /// Method Purpose: set Navigation State in Session.
 /// Author: Shady Yahia.
 /// Modification Date: April 28, 2011. 
 /// </summary>
 protected override void SetNavigationState()
 {
     try
     {
         if (_NavigationState != null)
         {
             SessionManager.Set<NavigationState>(enumSessionKeys.NavCardRegistration, this.NavigationState);
         }
         else
         {
             _NavigationState = new NavigationState();
             SessionManager.Set<NavigationState>(enumSessionKeys.NavCardRegistration, _NavigationState);
         }
     }
     catch (Exception ex)
     {
         if (!ExceptionHandler.IsUserFriendly(ex))
         {
             ex.Data.Add("CardPurchaseNavigation", "SetNavigationState");
             ExceptionHandler.handle(ex);
         }
         else
         {
             throw ex;
         }
     }
 }
        protected void InitializeME()
        {
            // Get current logged on user GUID.
            Guid lCurrLoggedOnUserID = AccountAdministrationManager.GetCurrentUserID();

            // Get current  logged on user name from session.
            string lUserName = string.Empty;
            lUserName = AccountAdministrationManager.GetCurrentUserName();

            // create navigation state object.
            if (lCurrLoggedOnUserID == Guid.Empty || lUserName == string.Empty)
            { _NavigationState = new NavigationState(); }
            else
            {
                _NavigationState = new NavigationState(lCurrLoggedOnUserID, lUserName);

                // Try update navigation state contact data.
                this.UpdateNavigationStateContactData();
            }
        }