SparkControl_API/SessionData.cs
2025-03-27 16:01:28 +08:00

24 lines
723 B
C#

using System;
using System.Collections.Generic;
using Tecan.At.Dragonfly.AutomationInterface.Data;
namespace Tecan.At.AutomationInterface.SampleApp
{
public class SessionData
{
public List<string> AvailableMethods { get; set; }
public IInstrument SelectedInstrument { get; set; }
public bool MethodIsValid { get; set; }
public Guid WorkspaceId { get; set; }
public Guid ExecutionId { get; set; }
public string ExportedDataFile { get; set; }
public void EnforceSetInstrument()
{
if (SelectedInstrument == null)
{
throw new InvalidOperationException("Instrument is not set.");
}
}
}
}