Example #1
0
 public static void Delete(string id)
 {
     DeleteProfilePictureAsync(id);
     DatabaseService.GetInstance().Delete(id);
     TodoItemViewModel.GetInstance().RemoveTodoItem();
     App.UpdateFileAndTile();
 }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
 public static void Complete(string id, bool IsCompleted)
 {
     DatabaseService.GetInstance().Complete(id, IsCompleted);
 }
Example #5
0
 public static string Query(string text)
 {
     return(DatabaseService.GetInstance().Query(text));
 }
Example #6
0
 public static async void ResumeTemp(string[] temp, Image image)
 {
     DatabaseService.GetInstance().ResumeTemp(temp);
     image.Source = await GetProfilePictureAsync("temp");
 }
Example #7
0
 public static void SaveTemp(string title, string detail, double size, DateTime date, ImageSource img)
 {
     DatabaseService.GetInstance().SaveTemp(title, detail, size, date);
 }