[chronojump] CairoPaintBarsPre with ToString() and debug on ModeMatches()
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] CairoPaintBarsPre with ToString() and debug on ModeMatches()
- Date: Fri, 22 Apr 2022 08:29:47 +0000 (UTC)
commit a91dd13b0bf2ccb3293645718fdb7c7a6e5dec04
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]