yavsc/BookAStar/BookAStar/Pages/UserProfile/UserProfilePage.xaml.cs

39 lines
974 B
C#
Raw Normal View History

2016-11-21 17:41:14 +01:00

2016-11-21 23:43:57 +01:00
using BookAStar.ViewModels.UserProfile;
2016-11-21 17:41:14 +01:00
using System;
2016-11-21 09:58:53 +01:00
using Xamarin.Forms;
namespace BookAStar.Pages.UserProfile
{
public partial class UserProfilePage : ContentPage
{
public UserProfilePage()
{
InitializeComponent();
2016-11-21 23:43:57 +01:00
// AvatarButton.Clicked += AvatarButton_Clicked;
2016-11-21 17:41:14 +01:00
}
private void AvatarButton_Clicked (object sender, EventArgs e)
{
throw new NotImplementedException();
}
public void OnManageFiles(object sender, EventArgs e)
{
ShowPage<UserFiles>(null, true);
}
public void OnViewPerformerStatus(object sender, EventArgs e)
{
ShowPage<AccountChooserPage>(null, true);
}
private void ShowPage<T>(object[] args, bool animate = false) where T : Page
{
App.NavigationService.NavigateTo<T>(animate, args);
App.MasterPresented = false;
2016-11-21 09:58:53 +01:00
}
}
}