Minor refactoring
This commit is contained in:
@@ -112,7 +112,7 @@ namespace ProgramLib
|
||||
_threadList.Last().Start();
|
||||
}
|
||||
|
||||
_threadList.Add(new PassthroughDataGuiUpdateThread());
|
||||
_threadList.Add(new PassthroughDataUpdateThread());
|
||||
_threadList.Last().Start();
|
||||
|
||||
_threadList.Add(new PowerSupplyUpdateThread());
|
||||
|
||||
@@ -30,9 +30,9 @@ using System.Threading.Tasks;
|
||||
namespace ProgramLib
|
||||
{
|
||||
/// <summary>
|
||||
/// Class to spawn thread to update passthrough data on GUI
|
||||
/// Class to spawn thread to update passthrough data
|
||||
/// </summary>
|
||||
internal class PassthroughDataGuiUpdateThread : BasicThread
|
||||
internal class PassthroughDataUpdateThread : BasicThread
|
||||
{
|
||||
private enum Events
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace ProgramLib
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
public PassthroughDataGuiUpdateThread()
|
||||
public PassthroughDataUpdateThread()
|
||||
{
|
||||
_logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace ProgramLib
|
||||
});
|
||||
}
|
||||
|
||||
~PassthroughDataGuiUpdateThread()
|
||||
~PassthroughDataUpdateThread()
|
||||
{
|
||||
_logger?.Debug($"Entering {this.GetType().Name}::{System.Reflection.MethodBase.GetCurrentMethod().Name}() ...");
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace ProgramLib
|
||||
|
||||
if (id == Events.UUT_POWER_ON)
|
||||
{
|
||||
UpdatePassthroughDataGui();
|
||||
UpdatePassthroughData();
|
||||
}
|
||||
else
|
||||
break;
|
||||
@@ -115,7 +115,7 @@ namespace ProgramLib
|
||||
/// </summary>
|
||||
/// <param name=""></param>
|
||||
/// <returns></returns>
|
||||
private void UpdatePassthroughDataGui()
|
||||
private void UpdatePassthroughData()
|
||||
{
|
||||
int pollRateMs = 1000;
|
||||
_logger?.Debug($"{this.GetType().Name}::{System.Reflection.MethodBase.GetCurrentMethod().Name}() is running...");
|
||||
Reference in New Issue
Block a user