Esempio n. 1
0
 public ProfileSetting()
 {
     try
     {
         InitializeComponent();
         _model            = new ProfileSettingViewModel();
         _metaPivotService = DependencyService.Get <IMetaPivotService>();
         Init();
     }
     catch (Exception ex)
     {
         DependencyService.Get <IMessage>().AlertAsync(TextResources.Alert,
                                                       ex.InnerException != null ? ex.InnerException.Message : ex.Message, TextResources.Ok);
     }
 }
 public ProfileSetting()
 {
     try
     {
         InitializeComponent();
         App.Configuration.InitialAsync(this);
         NavigationPage.SetHasNavigationBar(this, true);
         _model         = new ProfileSettingViewModel();
         BindingContext = _model;
         _model.SetActivityResource();
         LoadForm();
         _metaPivotService = DependencyService.Get <IMetaPivotService>();
     }
     catch (Exception ex)
     {
         DependencyService.Get <IMessage>().AlertAsync(TextResources.Alert,
                                                       ex.InnerException != null ? ex.InnerException.Message : ex.Message, TextResources.Ok);
     }
 }