Exemplo n.º 1
0
        private async void deleteProject_Click(object sender, RoutedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine($"Deleting Project with name: {VM.SelectedProject.Name}");

            DBStatus status = await SQLDbHelper.DeleteProject(VM.SelectedProject);

            if (status == DBStatus.Success)
            {
                VM.Projects.Remove(VM.SelectedProject);
                VM.SelectedProject = null;

                VM.IsDeleteProject = false;
            }
        }