public static void Delete(string id) { DeleteProfilePictureAsync(id); DatabaseService.GetInstance().Delete(id); TodoItemViewModel.GetInstance().RemoveTodoItem(); App.UpdateFileAndTile(); }
public static void Update(string title, string detail, DateTime date, double size, ImageSource img) { DatabaseService.GetInstance().Update(TodoItemViewModel.GetInstance().selectedItem.id, title, detail, size, date); SaveBitmapToFileAsync((WriteableBitmap)img, TodoItemViewModel.GetInstance().selectedItem.id); TodoItemViewModel.GetInstance().UpdateTodoItem(title, detail, date, size, img); App.UpdateFileAndTile(); }
public static void Insert(string title, string detail, DateTime date, double size, ImageSource img) { var newModel = new Models.TodoItem(title, detail, date, size, img); DatabaseService.GetInstance().Insert(newModel); SaveBitmapToFileAsync((WriteableBitmap)img, newModel.id); TodoItemViewModel.GetInstance().AddTodoItem(newModel); App.UpdateFileAndTile(); }
public static void Complete(string id, bool IsCompleted) { DatabaseService.GetInstance().Complete(id, IsCompleted); }
public static string Query(string text) { return(DatabaseService.GetInstance().Query(text)); }
public static async void ResumeTemp(string[] temp, Image image) { DatabaseService.GetInstance().ResumeTemp(temp); image.Source = await GetProfilePictureAsync("temp"); }
public static void SaveTemp(string title, string detail, double size, DateTime date, ImageSource img) { DatabaseService.GetInstance().SaveTemp(title, detail, size, date); }