@@ -272,12 +272,14 @@ private async void UcViewer1_TextSelected(string selectedText, PercentalAreaInfo
272272 isAnchorSelectionRunning = false ;
273273 isValueSelectionRunning = true ;
274274 lblInstruction . Text = Translation . LanguageStrings . InstructionSelectValue ;
275+ lblInstruction . BackColor = Color . Yellow ;
275276 }
276277 else if ( isValueSelectionRunning )
277278 {
278279 this . regexHelperValueText = selectedText ;
279280 isValueSelectionRunning = false ;
280281 lblInstruction . Text = string . Empty ;
282+ lblInstruction . BackColor = Color . White ;
281283
282284 // var loader = new PdfTextLoader();
283285 var inputString = await PdfTextLoader . GetTextFromPdf ( selectedFilePath , false ) ;
@@ -315,6 +317,7 @@ private async void UcViewer1_TextSelected(string selectedText, PercentalAreaInfo
315317 {
316318 isPositionSelectionRunning = false ;
317319 lblInstruction . Text = string . Empty ;
320+ lblInstruction . BackColor = Color . White ;
318321
319322 var result = MessageBox . Show ( Translation . LanguageStrings . MsgAskAcceptRegexExpressionHelperResult + Environment . NewLine + Environment . NewLine
320323 + "Position:" + Environment . NewLine + "page\t " + areaInfo . PageNumber + Environment . NewLine + "x\t " + Math . Round ( areaInfo . TopLeftX * 100 , 1 ) + " %"
@@ -395,11 +398,13 @@ private void UcResultAndEditor1_RegexOrPositionHelper(Guid id, DataFieldType dat
395398 {
396399 isAnchorSelectionRunning = true ;
397400 lblInstruction . Text = Translation . LanguageStrings . InstructionSelectAnchor ;
401+ lblInstruction . BackColor = Color . Orange ;
398402 }
399403 else if ( dataFieldMode == DataFieldMode . Position )
400404 {
401405 isPositionSelectionRunning = true ;
402406 lblInstruction . Text = Translation . LanguageStrings . InstructionSelectAreaPosition ;
407+ lblInstruction . BackColor = Color . Orange ;
403408 }
404409 }
405410
0 commit comments