private void Loaded() { if (IsEdit) { return; } Selected = new Category(); }
private async void DeleteCategory(Category categoryToDelete) { if (await DialogService.ShowConfirmMessage(Strings.DeleteTitle, Strings.DeleteCategoryConfirmationMessage)) { if (Categories.Contains(categoryToDelete)) { Categories.Remove(categoryToDelete); } CategoryRepository.Delete(categoryToDelete); } }
public CategoryViewModel(Category category) { this.category = category; }
private void Done(Category category) { MessengerInstance.Send(category); NavigationService.GoBack(); }