common/Ui/LegacyGenesisControl/ICRdy.cs
2026-04-23 17:50:07 +02:00

54 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace XylemCommonUiLegacyGenCtl
{
[ClassInterface(ClassInterfaceType.AutoDual)]
[Guid("FDD23F12-5AE6-4D23-BF34-9C46EA72F02E")]
[ComVisible(true)]
public class PopEventArgs : EventArgs
{
public bool Show { set; get; }
}
[ClassInterface(ClassInterfaceType.AutoDual)]
[Guid("AE0875F7-D30D-4113-AE28-E0CBD0373544")]
[ComVisible(true)]
public class StateChangeEventArgs : EventArgs
{
public bool IsRunning { set; get; }
public bool HasErrors { set; get; }
}
public delegate void OnStateChange(Object sender, StateChangeEventArgs e);
public delegate void OnPop(Object sender, PopEventArgs e);
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("A1095409-2795-45C7-B6B6-800B4F76CA60")]
public interface ICRdy
{
[DispId(1)]
void OneStateChange();
[DispId(2)]
void OnPop(Object sender, PopEventArgs e);
void Init(int v);
void Start();
void LedOff();
bool GetAllInfos(out string oPcbId, out string oSerialNumber, out bool oHasPreajustment, out bool oHasWarnings, out string oLUT);
}
}