public MyAccountPage() { _myAccountPageViewModel = new MyAccountPageViewModel(App.MegaSdk, App.AppInformation, this); this.DataContext = _myAccountPageViewModel; InitializeComponent(); InitializePage(MainDrawerLayout, LstHamburgerMenu, HamburgerMenuItemType.MyAccount); SetApplicationBarData(); InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem)); // Subscribe to the NetworkAvailabilityChanged event DeviceNetworkInformation.NetworkAvailabilityChanged += new EventHandler <NetworkNotificationEventArgs>(NetworkAvailabilityChanged); }
public ActionResult Index(MyAccountPage currentPage) { if (SiteUser == null) { return(View("~/Views/MyProfile/MyAccount.cshtml", new MyAccountPageViewModel(currentPage))); } var organization = UserManager.GetActiveCustomer(HttpContext); var model = new MyAccountPageViewModel(currentPage) { CurrentOrganization = organization, UserProfilePictureUrl = SiteUser?.ProfilePicUrl, CompanyProfilePictureUrl = organization?.ProfilePicUrl }; return(View("~/Views/MyProfile/MyAccount.cshtml", model)); }
public MyAccountPage() { BindingContext = new MyAccountPageViewModel(); InitializeComponent(); }