public TestRunner(SwitchController sc, NetworkAnalyzer av, Oscillograph osc) { this.av = av; this.osc = osc; this.sc = sc; }
public static ISwitchController Open(int deviceNo) { if (instance == null) { if (!GUI.Program.Debug) { IntPtr handle = AC6651.OpenDevice(deviceNo); if (handle == AC6651.InvalidHandle) { throw Helper.NewCustomException("³õʼ»¯AC6651´íÎó"); } SwitchController c = new SwitchController(deviceNo); c.Handle = handle; instance = c; } else { instance = new SwitchControllStub(); } } return(instance); }
public static ISwitchController Open(int deviceNo) { if (instance == null) { if (!GUI.Program.Debug) { IntPtr handle = AC6651.OpenDevice(deviceNo); if (handle == AC6651.InvalidHandle) { throw Helper.NewCustomException("��ʼ��AC6651����"); } SwitchController c = new SwitchController(deviceNo); c.Handle = handle; instance = c; } else { instance = new SwitchControllStub(); } } return instance; }