diff --git a/task-list-app-maui/App.xaml.cs b/task-list-app-maui/App.xaml.cs index c061313a..c8095f68 100644 --- a/task-list-app-maui/App.xaml.cs +++ b/task-list-app-maui/App.xaml.cs @@ -8,4 +8,4 @@ public App() MainPage = new AppShell(); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/AppShell.xaml.cs b/task-list-app-maui/AppShell.xaml.cs index 3b14141b..709f5a97 100644 --- a/task-list-app-maui/AppShell.xaml.cs +++ b/task-list-app-maui/AppShell.xaml.cs @@ -15,5 +15,5 @@ private void OnSearchClicked(object sender, EventArgs e) private void OnAboutClicked(object sender, EventArgs e) { DisplayAlert(Title, "Information about the Task List app", "OK"); - } -} + } +} \ No newline at end of file diff --git a/task-list-app-maui/Data/AppDbContext.cs b/task-list-app-maui/Data/AppDbContext.cs index e4c55a37..157ec7c2 100644 --- a/task-list-app-maui/Data/AppDbContext.cs +++ b/task-list-app-maui/Data/AppDbContext.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using task_list_app_maui.Models; namespace task_list_app_maui.Data; @@ -6,4 +6,4 @@ namespace task_list_app_maui.Data; public class AppDbContext(DbContextOptions options) : DbContext(options) { public DbSet Tarefas { get; set; } -} +} \ No newline at end of file diff --git a/task-list-app-maui/MauiProgram.cs b/task-list-app-maui/MauiProgram.cs index 265365f4..5042fc3b 100644 --- a/task-list-app-maui/MauiProgram.cs +++ b/task-list-app-maui/MauiProgram.cs @@ -21,12 +21,12 @@ public static MauiApp CreateMauiApp() }); builder.Services.AddDbContext(options => { options.UseInMemoryDatabase("task-list-app-maui"); }); - + builder.Services.AddSingleton(); - + builder.Services.AddSingleton(); builder.Services.AddSingleton(); return builder.Build(); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Models/Tarefa.cs b/task-list-app-maui/Models/Tarefa.cs index cd215ae0..fc8be4cd 100644 --- a/task-list-app-maui/Models/Tarefa.cs +++ b/task-list-app-maui/Models/Tarefa.cs @@ -1,30 +1,30 @@ -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using CommunityToolkit.Mvvm.ComponentModel; namespace task_list_app_maui.Models; public class Tarefa : ObservableValidator { - private int id; - private string descricao = string.Empty; - private DateTime data; - private TimeSpan hora; - private bool concluida; + private int id; + private string descricao = string.Empty; + private DateTime data; + private TimeSpan hora; + private bool concluida; - [Key] - [Required] - public int Id { get => id; set => SetProperty(ref id, value, true); } + [Key] + [Required] + public int Id { get => id; set => SetProperty(ref id, value, true); } - [Required] - [MaxLength(60)] - public string Descricao { get => descricao; set => SetProperty(ref descricao, value, true); } + [Required] + [MaxLength(60)] + public string Descricao { get => descricao; set => SetProperty(ref descricao, value, true); } - [Required] - public DateTime Data { get => data; set => SetProperty(ref data, value, true); } + [Required] + public DateTime Data { get => data; set => SetProperty(ref data, value, true); } - [Required] - public TimeSpan Hora { get => hora; set => SetProperty(ref hora, value, true); } + [Required] + public TimeSpan Hora { get => hora; set => SetProperty(ref hora, value, true); } - [Required] - public bool Concluida { get => concluida; set => SetProperty(ref concluida, value, true); } -} + [Required] + public bool Concluida { get => concluida; set => SetProperty(ref concluida, value, true); } +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/Android/MainActivity.cs b/task-list-app-maui/Platforms/Android/MainActivity.cs index 90bcf0a3..9cf2b675 100644 --- a/task-list-app-maui/Platforms/Android/MainActivity.cs +++ b/task-list-app-maui/Platforms/Android/MainActivity.cs @@ -7,4 +7,4 @@ namespace task_list_app_maui; [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] public class MainActivity : MauiAppCompatActivity { -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/Android/MainApplication.cs b/task-list-app-maui/Platforms/Android/MainApplication.cs index 7708c3f9..3151ac9e 100644 --- a/task-list-app-maui/Platforms/Android/MainApplication.cs +++ b/task-list-app-maui/Platforms/Android/MainApplication.cs @@ -12,4 +12,4 @@ public MainApplication(IntPtr handle, JniHandleOwnership ownership) } protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/MacCatalyst/AppDelegate.cs b/task-list-app-maui/Platforms/MacCatalyst/AppDelegate.cs index bc0758b9..e43a7ed6 100644 --- a/task-list-app-maui/Platforms/MacCatalyst/AppDelegate.cs +++ b/task-list-app-maui/Platforms/MacCatalyst/AppDelegate.cs @@ -6,4 +6,4 @@ namespace task_list_app_maui; public class AppDelegate : MauiUIApplicationDelegate { protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/MacCatalyst/Program.cs b/task-list-app-maui/Platforms/MacCatalyst/Program.cs index 3be6a093..f0bdb273 100644 --- a/task-list-app-maui/Platforms/MacCatalyst/Program.cs +++ b/task-list-app-maui/Platforms/MacCatalyst/Program.cs @@ -12,4 +12,4 @@ static void Main(string[] args) // you can specify it here. UIApplication.Main(args, null, typeof(AppDelegate)); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/Tizen/Main.cs b/task-list-app-maui/Platforms/Tizen/Main.cs index 3fb1fba1..7d362d1e 100644 --- a/task-list-app-maui/Platforms/Tizen/Main.cs +++ b/task-list-app-maui/Platforms/Tizen/Main.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Maui; using Microsoft.Maui.Hosting; @@ -13,4 +13,4 @@ static void Main(string[] args) var app = new Program(); app.Run(args); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/Windows/App.xaml.cs b/task-list-app-maui/Platforms/Windows/App.xaml.cs index 463553e5..b8abd746 100644 --- a/task-list-app-maui/Platforms/Windows/App.xaml.cs +++ b/task-list-app-maui/Platforms/Windows/App.xaml.cs @@ -20,5 +20,4 @@ public App() } protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} - +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/iOS/AppDelegate.cs b/task-list-app-maui/Platforms/iOS/AppDelegate.cs index bc0758b9..e43a7ed6 100644 --- a/task-list-app-maui/Platforms/iOS/AppDelegate.cs +++ b/task-list-app-maui/Platforms/iOS/AppDelegate.cs @@ -6,4 +6,4 @@ namespace task_list_app_maui; public class AppDelegate : MauiUIApplicationDelegate { protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); -} +} \ No newline at end of file diff --git a/task-list-app-maui/Platforms/iOS/Program.cs b/task-list-app-maui/Platforms/iOS/Program.cs index 3be6a093..f0bdb273 100644 --- a/task-list-app-maui/Platforms/iOS/Program.cs +++ b/task-list-app-maui/Platforms/iOS/Program.cs @@ -12,4 +12,4 @@ static void Main(string[] args) // you can specify it here. UIApplication.Main(args, null, typeof(AppDelegate)); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/ViewModels/TarefasViewModel.cs b/task-list-app-maui/ViewModels/TarefasViewModel.cs index 88a483e9..07470312 100644 --- a/task-list-app-maui/ViewModels/TarefasViewModel.cs +++ b/task-list-app-maui/ViewModels/TarefasViewModel.cs @@ -1,4 +1,4 @@ -using System.Collections.ObjectModel; +using System.Collections.ObjectModel; using System.Data; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; @@ -123,4 +123,4 @@ public void GetAll() } public void Dispose() => _context.Dispose(); -} +} \ No newline at end of file diff --git a/task-list-app-maui/Views/AdicionarTarefaView.xaml.cs b/task-list-app-maui/Views/AdicionarTarefaView.xaml.cs index aa664bc4..8a536ceb 100644 --- a/task-list-app-maui/Views/AdicionarTarefaView.xaml.cs +++ b/task-list-app-maui/Views/AdicionarTarefaView.xaml.cs @@ -1,4 +1,4 @@ -using task_list_app_maui.ViewModels; +using task_list_app_maui.ViewModels; namespace task_list_app_maui.Views; @@ -35,4 +35,4 @@ private async void OnCloseAddTaskClicked(object sender, EventArgs e) { await Navigation.PopModalAsync(); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Views/EditarTarefaView.xaml.cs b/task-list-app-maui/Views/EditarTarefaView.xaml.cs index 0d336ba9..b8b81b79 100644 --- a/task-list-app-maui/Views/EditarTarefaView.xaml.cs +++ b/task-list-app-maui/Views/EditarTarefaView.xaml.cs @@ -1,4 +1,4 @@ -using task_list_app_maui.ViewModels; +using task_list_app_maui.ViewModels; namespace task_list_app_maui.Views; @@ -39,4 +39,4 @@ private async void OnCloseEditTaskClicked(object sender, EventArgs e) await Navigation.PopModalAsync(); } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Views/TarefasConcluidasView.xaml.cs b/task-list-app-maui/Views/TarefasConcluidasView.xaml.cs index a4e9cf1e..236c0dac 100644 --- a/task-list-app-maui/Views/TarefasConcluidasView.xaml.cs +++ b/task-list-app-maui/Views/TarefasConcluidasView.xaml.cs @@ -1,4 +1,4 @@ -using task_list_app_maui.Models; +using task_list_app_maui.Models; using task_list_app_maui.ViewModels; namespace task_list_app_maui.Views; @@ -52,4 +52,4 @@ private async void OnDeleteClicked(object sender, EventArgs e) tarefasViewModel.GetAll(); } } -} +} \ No newline at end of file diff --git a/task-list-app-maui/Views/TarefasPendentesView.xaml.cs b/task-list-app-maui/Views/TarefasPendentesView.xaml.cs index fbb53aea..e306b4bd 100644 --- a/task-list-app-maui/Views/TarefasPendentesView.xaml.cs +++ b/task-list-app-maui/Views/TarefasPendentesView.xaml.cs @@ -1,4 +1,4 @@ -using task_list_app_maui.Models; +using task_list_app_maui.Models; using task_list_app_maui.ViewModels; namespace task_list_app_maui.Views; @@ -61,4 +61,4 @@ private async void OnAddTaskClicked(object sender, EventArgs e) tarefasViewModel.GetAll(); } -} +} \ No newline at end of file