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"); } } }