Пример #1
0
 public LayoutVm()
 {
     TopBar = new TopBarVm();
     Footer = new FooterVm();
     HeadBundle = new BundleVm();
     BodyBottomBundle = new BundleVm();
 }
        private async void LoadFooterVm()
        {
            try
            {
                FooterVm = MenuService.LoadFooterVmIfExist();

                await FooterVm?.Initialize();
            }
            catch (UnauthorizedAccessException ex)
            {
                MvxTrace.Trace(MvvmCross.Platform.Platform.MvxTraceLevel.Error, "MenuViewModel: ", ex.Message);
            }
            catch (FileNotFoundException ex)
            {
                MvxTrace.Trace(MvvmCross.Platform.Platform.MvxTraceLevel.Error, "MenuViewModel: ", ex.Message);
            }
            catch
            {
                MvxTrace.Trace(MvvmCross.Platform.Platform.MvxTraceLevel.Error, "MenuViewModel: ", "Can't load footer vm");
            }
        }