diff --git a/MauiProject/App.xaml.cs b/MauiProject/App.xaml.cs index 71ba8db..921f801 100644 --- a/MauiProject/App.xaml.cs +++ b/MauiProject/App.xaml.cs @@ -6,6 +6,9 @@ public App() { InitializeComponent(); Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NjA0NzI4QDMyMzAyZTMxMmUzMElnd0owNjFveXpldXBBVW9aQ3BkR2VGQUZRK2doVFZPak92T2VzNm5MR1k9"); - MainPage = new AppShell(); } + protected override Window CreateWindow(IActivationState? activationState) + { + return new Window(new MainPage()); + } } diff --git a/MauiProject/AppShell.xaml b/MauiProject/AppShell.xaml deleted file mode 100644 index 457693b..0000000 --- a/MauiProject/AppShell.xaml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - diff --git a/MauiProject/AppShell.xaml.cs b/MauiProject/AppShell.xaml.cs deleted file mode 100644 index ae6151c..0000000 --- a/MauiProject/AppShell.xaml.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace MauiProject; - -public partial class AppShell : Shell -{ - public AppShell() - { - InitializeComponent(); - } -} diff --git a/MauiProject/EmployeeInfo.cs b/MauiProject/EmployeeInfo.cs index 8814114..69169f7 100644 --- a/MauiProject/EmployeeInfo.cs +++ b/MauiProject/EmployeeInfo.cs @@ -12,18 +12,18 @@ public class EmployeeInfo { [Required(AllowEmptyStrings = false, ErrorMessage = "First Name should not be empty")] [Display(Name = "First Name")] - public string FirstName { get; set; } + public string FirstName { get; set; } = string.Empty; [Display(Name = "Middle Name")] - public string MiddleName { get; set; } + public string MiddleName { get; set; } = string.Empty; [Display(Name = "Last Name")] - public string LastName { get; set; } + public string LastName { get; set; } = string.Empty; [StringLength(10, ErrorMessage = "Contact number should not exceed 10 digits")] [Display(Name = "Contact Number")] - public string ContactNumber { get; set; } - public string Email { get; set; } + public string ContactNumber { get; set; } = string.Empty ; + public string Email { get; set; } = string.Empty; [DataType(DataType.MultilineText)] - public string Address { get; set; } - public string Country { get; set; } + public string Address { get; set; } = string.Empty; + public string Country { get; set; } = string.Empty; [Display(Name = "Date Joined")] public DateTime? DateJoined { get; set; } public bool Confirmed { get; set; } diff --git a/MauiProject/MainPage.xaml b/MauiProject/MainPage.xaml index 66da5d5..ff0e023 100644 --- a/MauiProject/MainPage.xaml +++ b/MauiProject/MainPage.xaml @@ -9,7 +9,9 @@ - diff --git a/MauiProject/MauiProject.csproj b/MauiProject/MauiProject.csproj index fd22fea..a568095 100644 --- a/MauiProject/MauiProject.csproj +++ b/MauiProject/MauiProject.csproj @@ -1,15 +1,16 @@  - net7.0-android; - $(TargetFrameworks);net7.0-windows10.0.19041.0 + net9.0-android; + $(TargetFrameworks);net9.0-windows10.0.19041.0 - + Exe MauiProject true true enable + enable MauiProject @@ -49,8 +50,8 @@ - - + + diff --git a/MauiProject/MauiProject.csproj.user b/MauiProject/MauiProject.csproj.user index 5a44c64..fc2823d 100644 --- a/MauiProject/MauiProject.csproj.user +++ b/MauiProject/MauiProject.csproj.user @@ -2,9 +2,12 @@ False - net7.0-android - Pixel 5 - API 33 (Android 13.0 - API 33) + net9.0-windows10.0.19041.0 + Windows Machine Emulator - pixel_5_-_api_33 + pixel_5_-_api_34 + + + ProjectDebugger \ No newline at end of file