Index: Riskeer/Common/src/Riskeer.Common.Plugin/RiskeerViewInfo.cs
===================================================================
diff -u -r15d39e3773620fe0e9c23de9831e16e6cc105d01 -rc7ac0719acf1ba7f05cfaeb13eacba48007abd39
--- Riskeer/Common/src/Riskeer.Common.Plugin/RiskeerViewInfo.cs (.../RiskeerViewInfo.cs) (revision 15d39e3773620fe0e9c23de9831e16e6cc105d01)
+++ Riskeer/Common/src/Riskeer.Common.Plugin/RiskeerViewInfo.cs (.../RiskeerViewInfo.cs) (revision c7ac0719acf1ba7f05cfaeb13eacba48007abd39)
@@ -33,17 +33,17 @@
///
/// Initializes a new instance of the class.
///
- /// The to use during the initialization.
- /// Thrown when equals null.
- public RiskeerViewInfo(IGui gui)
+ /// The function for retrieving the .
+ /// Thrown when equals null.
+ public RiskeerViewInfo(Func getGuiFunc)
{
- if (gui == null)
+ if (getGuiFunc == null)
{
- throw new ArgumentNullException(nameof(gui));
+ throw new ArgumentNullException(nameof(getGuiFunc));
}
- Symbol = gui.ActiveStateInfo?.Symbol;
- FontFamily = gui.ActiveStateInfo?.FontFamily;
+ Symbol = getGuiFunc()?.ActiveStateInfo?.Symbol;
+ FontFamily = getGuiFunc()?.ActiveStateInfo?.FontFamily;
}
}
@@ -55,8 +55,8 @@
///
/// Initializes a new instance of the class.
///
- /// The to use during the initialization.
- /// Thrown when equals null.
- public RiskeerViewInfo(IGui gui) : base(gui) {}
+ /// The function for retrieving the .
+ /// Thrown when equals null.
+ public RiskeerViewInfo(Func getGuiFunc) : base(getGuiFunc) {}
}
}
\ No newline at end of file