[chronojump/FS-TFT-Menu] CairoPaintBarsPre with ToString() and debug on ModeMatches()
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] CairoPaintBarsPre with ToString() and debug on ModeMatches()
- Date: Wed, 27 Apr 2022 17:18:03 +0000 (UTC)
commit e8f2062677d59c264c7703e3e4a72d244e700998
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 22 10:28:27 2022 +0200
CairoPaintBarsPre with ToString() and debug on ModeMatches()
src/gui/eventExecute.cs | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 87921940f..8ee1cb197 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -2161,8 +2161,19 @@ public abstract class CairoPaintBarsPre
this.pDN = pDN;
}
+ // to debug
+ public override string ToString ()
+ {
+ return string.Format(
+ "mode: {0}, personName: {1}, testName: {2}, pDN: {3}",
+ mode, personName, testName, pDN);
+ }
+
public bool ModeMatches (Constants.Modes mode)
{
+ LogB.Information(string.Format("ModeMatches. This mode: {0}, checking against: {1}, are
equal: {2}",
+ this.mode, mode, (this.mode == mode)));
+
return (this.mode == mode);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]