Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public MyAccountPage()
 {
     BindingContext = new MyAccountPageViewModel();
     InitializeComponent();
 }