protected override void OnShowContextMenu() { GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)Window.WINDOW_DIALOG_MENU); if (dlg == null) { return; } dlg.Reset(); dlg.SetHeading(498); // Menu // Dialog items dlg.AddLocalizedString(2168); // Update Exif // Show dialog menu dlg.DoModal(GetID); if (dlg.SelectedId == -1) { return; } switch (dlg.SelectedId) { case 2168: // Update Exif Log.Debug("GUIPicturesExif: Update Exif {0}: {1}", PictureDatabase.UpdatePicture(_currentPicture, -1), _currentPicture); _currentMetaData = PictureDatabase.GetExifFromDB(_currentPicture); SetExifGUIListItems(); Update(); Refresh(); break; } }
/// <summary> /// Callable by the Client. /// Updates an existing Image with the supplied data /// </summary> /// <param name="p">Picture to update</param> /// <returns></returns> public async Task Update(Picture p) { await _picDb.UpdatePicture(p); }