From bbdd00bd17a608a70cdac273641e3bfdba22fcae Mon Sep 17 00:00:00 2001 From: jarig Date: Mon, 1 Feb 2016 23:09:45 +0200 Subject: [PATCH] multistep find and deliver + details on error detection --- .../Assets/mTypes/MultiStepFindAndDeliver.bmp | Bin 0 -> 8322 bytes EliteReporter/EliteReporter.csproj | 3 +++ EliteReporter/Forms/ReportForm.cs | 13 +++++++++---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 EliteReporter/Assets/mTypes/MultiStepFindAndDeliver.bmp diff --git a/EliteReporter/Assets/mTypes/MultiStepFindAndDeliver.bmp b/EliteReporter/Assets/mTypes/MultiStepFindAndDeliver.bmp new file mode 100644 index 0000000000000000000000000000000000000000..1cd543a830bd4d6a0311319d997f35e2191b2a6a GIT binary patch literal 8322 zcmai&S#%rMea77f0)tsFg8@K*#5P!F08m`OeFJ4#mMLnXWQ!odos`5~BB{l)RLOBq zTOYTlJ?TlB*mY0rT1lL`*}NoHsx+oQNRuZxor zcz7Q#_ysZG5&XR9_Xw&}*nt9qw~{Sp6tF}d!x|I_ z5e4lE&(v)2brKyFQ1+?JKKWY9Pw-Dv{vFrpx1V3i|JJXvcLO|(o*Ei$$SPJurwYv%}?RmpB1-^K9Q zSF0W|D9T~5fuTah0_?bX0@J|ZBfGE(0P^jia-)8Pu$vFL`7kFnxey2;4m;SFny|x( zMDbMnWcf@w*CY7iRkk45%+9jdOfY=4;0=kSx$s4HHv9@zmuz6fA7TgvV{F7UK$6Wy z2w+&*j_k~qVj!V-AOss?BFeU`WjZ}l6g5xT&a1&V1GBRM>DlL=f9Bb5XN&@2 zBfgo!cpTn;cyRa-%&`E>a`FX}LnEVIz58V~4&SIuX98h;X#d#Afup=PQsHs3wM|Se zCo^3ZTVZ9bhRy7KoE_PGH|7=6RO1`+sQBZuieI07dv!%QDFMx^CJP0<8p(;1r|W7Elo8aCO$QxSCx)4&pII@))vur0_+@z?_te-p%s&5(@> zU=BsK_KB&}n%>1pF%-Ow4WpH)j*ZM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O78ywQoE;H literal 0 HcmV?d00001 diff --git a/EliteReporter/EliteReporter.csproj b/EliteReporter/EliteReporter.csproj index 1b860b6..55afb9d 100644 --- a/EliteReporter/EliteReporter.csproj +++ b/EliteReporter/EliteReporter.csproj @@ -347,6 +347,9 @@ Always + + Always + Always diff --git a/EliteReporter/Forms/ReportForm.cs b/EliteReporter/Forms/ReportForm.cs index ac30e54..b6b788c 100644 --- a/EliteReporter/Forms/ReportForm.cs +++ b/EliteReporter/Forms/ReportForm.cs @@ -47,7 +47,12 @@ private void RegisterMission(object source, FileSystemEventArgs e) { Trace.TraceInformation("File: " + e.FullPath + " " + e.ChangeType); Thread.Sleep(500); // wait until file is ready - analyzeScreenShot(e.FullPath); + try { + analyzeScreenShot(e.FullPath); + }catch (Exception ex) + { + toolStripStatusLabel1.Text = "Error during screen analysis: " + ex.Message; + } } private void analyzeScreenShot(string pathToBmp) @@ -73,13 +78,13 @@ private void analyzeScreenShot(string pathToBmp) if (existingLvItem != null) { //finshing mission - if (((MissionInfo)existingLvItem.Tag).MissionTakenDateTime.Value.Add(takenMisisonCoolDown) < DateTime.UtcNow) + if (((MissionInfo)existingLvItem.Tag).MissionTakenDateTime.Value.Add(takenMisisonCoolDown) < DateTime.Now) { var edProfile = edapi.getProfile(); var missionInfo = (MissionInfo)existingLvItem.Tag; if (missionInfo.MissionFinishedEDProfile == null) { - missionInfo.MissionFinishedDateTime = DateTime.UtcNow; + missionInfo.MissionFinishedDateTime = DateTime.Now; missionInfo.MissionFinishedEDProfile = edProfile; fillMissionListViewItem(existingLvItem, missionInfo); } @@ -96,7 +101,7 @@ private void analyzeScreenShot(string pathToBmp) var edProfile = edapi.getProfile(); if (string.IsNullOrEmpty(commanderName)) commanderName = edProfile.CommanderName; - result.MissionTakenDateTime = DateTime.UtcNow; + result.MissionTakenDateTime = DateTime.Now; result.MissionTakenEDProfile = edProfile; ListViewItem lvItem = new ListViewItem(); lvItem.Tag = result;