private void SelectObservationImgCommand() { var resu = _openFileDialogService.ShowOpenFileDialog(); ObservationImgsFilePaths.Add(resu); OutputMessages.Add(new OutputMessage() { Message = resu + " added as Observation Img", Level = "debug" }); _logService.Write(this, resu + " added as Observation Img", "debug"); }
private async void SaveReactionCommandAsync() { OutputMessages.Add(new OutputMessage() { Message = "Saving to database", Level = "debug" }); _logService.Write(this, "Saving to database", "debug"); await _dbService.FinishSketchReaction(_reactionId, ClosureDate, Procedure, Observation, Yield, ObservationImgsFilePaths.ToList()); OutputMessages.Add(new OutputMessage() { Message = "Finished!", Level = "debug" }); _logService.Write(this, "Finished", "debug"); }
private void DeleteObservationImgCommand(string deleteThis) { ObservationImgsFilePaths.Remove(deleteThis); }