Fix warnings. (#2072)

This commit is contained in:
Blacktempel
2025-11-24 16:39:42 +01:00
committed by GitHub
parent e0cc2e2d4e
commit 5a1a40a549
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -263,9 +263,13 @@ public class PlotPanel : UserControl
StrokeThickness = 2,
};
#pragma warning disable CS0618 //obsolete warning
axis.AxisChanged += (sender, args) => annotation.Y = axis.ActualMinimum;
axis.TransformChanged += (sender, args) => annotation.Y = axis.ActualMinimum;
#pragma warning restore CS0618 //obsolete warning
axis.Zoom(_settings.GetValue("plotPanel.Min" + axis.Key, float.NaN), _settings.GetValue("plotPanel.Max" + axis.Key, float.NaN));
if (units.ContainsKey(type))
@@ -87,8 +87,8 @@ internal class IsaBridgeGigabyteController : IGigabyteController
{
bool isEntered = false;
/// use a try finaly + the <see cref="isEntered" /> to get a safe
/// <see cref="EnterMmio(IsaBridgeEc, MMIOState?)"/> and <see cref="ExitMmio(IsaBridgeEc)"/> pattern
// use try finally + isEntered to get a safe
// EnterMmio and ExitMmio pattern
try
{
// get initial state if missing