Пример #1
0
        protected ISmartMenu CreateDefaultMenu()
        {
            try
            {
                return(_defaultMenu.CreateMenu());
            }
            catch (Exception e)
            { // TODO KPH: do something here?  Log?
                Logger.Warning("Exception while generating default menu.", e);
            }

            return(_defaultMenu.CreateMenu());
        }
Пример #2
0
 protected ISmartMenu CreateNextMenu()
 {
     try
     {
         return(_nextMenu.CreateMenu());
     }
     catch (Exception e)
     {
         Logger.Error("There was a problem generating the next menu!", e);
         return(_defaultMenu.CreateMenu());
     }
 }