コード例 #1
0
ファイル: ReactionPageViewModel.cs プロジェクト: FTim/ch
        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");
        }
コード例 #2
0
ファイル: ReactionPageViewModel.cs プロジェクト: FTim/ch
        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");
        }
コード例 #3
0
ファイル: ReactionPageViewModel.cs プロジェクト: FTim/ch
 private void DeleteObservationImgCommand(string deleteThis)
 {
     ObservationImgsFilePaths.Remove(deleteThis);
 }