SOS Group List Update

main
unknown 6 months ago
parent 6f28748796
commit 22ee251227
  1. 3
      Justice.csproj
  2. 3
      Justice.csproj.user
  3. 23
      Models/IncidentReport.cs
  4. 12
      Views/IncidentReportPage.xaml
  5. 9
      Views/IncidentReportPage.xaml.cs

@ -80,6 +80,9 @@
<MauiXaml Update="Views\EmergencyContactsPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\IncidentReportPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\SosPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

@ -20,6 +20,9 @@
<MauiXaml Update="Views\EmergencyContactsPage.xaml">
<SubType>Designer</SubType>
</MauiXaml>
<MauiXaml Update="Views\IncidentReportPage.xaml">
<SubType>Designer</SubType>
</MauiXaml>
<MauiXaml Update="Views\SosPage.xaml">
<SubType>Designer</SubType>
</MauiXaml>

@ -0,0 +1,23 @@
using SQLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Justice.Models
{
public class IncidentReport
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public string ReportName { get; set; }
public string IncidentType { get; set; }
public string Description { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
public string Address { get; set; }
public DateTime DateTime { get; set; }
public string AttachmentPath { get; set; }
}
}

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Justice.Views.IncidentReportPage"
Title="IncidentReportPage">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

@ -0,0 +1,9 @@
namespace Justice.Views;
public partial class IncidentReportPage : ContentPage
{
public IncidentReportPage()
{
InitializeComponent();
}
}
Loading…
Cancel
Save