You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
using Justice.Helpers;
|
|
using Microsoft;
|
|
using Justice.Views;
|
|
|
|
|
|
namespace Justice.Views;
|
|
|
|
public partial class DashboardPage : ContentPage
|
|
{
|
|
public DashboardPage()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
private async void OnInformationCenterClicked(object sender, EventArgs e)
|
|
{
|
|
await Navigation.PushAsync(new InformationCenterPage());
|
|
}
|
|
|
|
private void OnHelpLineNumberClicked(object sender, EventArgs e)
|
|
{
|
|
Navigation.PushAsync(new HelplinePage());
|
|
}
|
|
private void OnViewReportClicked(object sender, EventArgs e)
|
|
{
|
|
|
|
Navigation.PushAsync(new EndUserReportsPage());
|
|
}
|
|
private void OnIncidentReportClicked(object sender, EventArgs e)
|
|
{
|
|
Navigation.PushAsync(new IncidentReportPage());
|
|
}
|
|
private void OnSOSButtonClicked(object sender, EventArgs e)
|
|
{
|
|
Navigation.PushAsync(new SosPage());
|
|
}
|
|
private void OnAddContactClicked(object sender, EventArgs e)
|
|
{
|
|
Navigation.PushAsync(new AddContactPage());
|
|
}
|
|
private async void OnLogoutClicked(object sender, EventArgs e)
|
|
{
|
|
bool confirm = await DisplayAlert("Logout", "Are you sure you want to log out?", "Yes", "No");
|
|
if (confirm)
|
|
{
|
|
|
|
// Redirect to Login Page
|
|
await Shell.Current.GoToAsync("//LoginPage");
|
|
|
|
}
|
|
}
|
|
} |