Implement PowerUp Sequencing
bindings to datagridview
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace HTOLHAST
|
||||
{
|
||||
@@ -77,7 +78,7 @@ namespace HTOLHAST
|
||||
WriteCommand("OUTP:GEN OFF");
|
||||
}
|
||||
}
|
||||
public void PowerUpSequence(List<PowerUpSequence> powerUpSequence)
|
||||
public void PowerUpSequence(BindingList<PowerSequence> powerUpSequence)
|
||||
{
|
||||
foreach (var sequence in powerUpSequence)
|
||||
{
|
||||
@@ -85,7 +86,7 @@ namespace HTOLHAST
|
||||
Thread.Sleep(sequence.Delay);
|
||||
}
|
||||
}
|
||||
public void PowerDownSequence(List<PowerUpSequence> powerUpSequence)
|
||||
public void PowerDownSequence(BindingList<PowerSequence> powerUpSequence)
|
||||
{
|
||||
foreach (var sequence in powerUpSequence)
|
||||
{
|
||||
@@ -93,13 +94,13 @@ namespace HTOLHAST
|
||||
Thread.Sleep(sequence.Delay);
|
||||
}
|
||||
}
|
||||
public List<PowerUpSequence> GenerateSimulationPowerUpSequence()
|
||||
public BindingList<PowerSequence> GenerateSimulationPowerUpSequence()
|
||||
{
|
||||
List<PowerUpSequence> powerUpSequence = new List<PowerUpSequence> {
|
||||
new PowerUpSequence { Channel = 1, Delay = 1000},
|
||||
new PowerUpSequence { Channel = 3, Delay = 1000},
|
||||
new PowerUpSequence { Channel = 4, Delay = 1000},
|
||||
new PowerUpSequence { Channel = 2, Delay = 1000},
|
||||
BindingList<PowerSequence> powerUpSequence = new BindingList<PowerSequence> {
|
||||
new PowerSequence { Channel = 1, Delay = 1000},
|
||||
new PowerSequence { Channel = 3, Delay = 1000},
|
||||
new PowerSequence { Channel = 4, Delay = 1000},
|
||||
new PowerSequence { Channel = 2, Delay = 1000},
|
||||
};
|
||||
|
||||
return powerUpSequence;
|
||||
|
||||
Reference in New Issue
Block a user