private void IDC_GetInfoResponse(WFSIDCSTATUS arg1, WFSIDCCAPS arg2) { Dispatcher.Invoke(() => { idcResponse.Text += MethodBase.GetCurrentMethod().Name + Environment.NewLine; }); }
private Wrapper.Common.XFSDeviceBase AddOrGetServiceBase(XfsCommandBase <OpenCommand> Command) { if (!XFS_DevicesCollection.Instance.IsContainKey(Command.ServiceType)) { ISTATUS TStatusType; ICAPS TCapabilityType; Wrapper.Common.XFSDeviceBase XFSDevice = null; switch (Command.ServiceType) { case ServiceTypes.IDC: { TStatusType = new WFSIDCSTATUS(); TCapabilityType = new WFSIDCCAPS(); XFSDevice = new Wrapper.Common.XFSDeviceBase { StatusClass = TStatusType, CapabilityClass = TCapabilityType }; break; } case ServiceTypes.PIN: { TStatusType = new WFSIDCSTATUS(); TCapabilityType = new WFSIDCCAPS(); //XFSDevice = new XFSDeviceBase<pinst\\\, WFSIDCCAPS>(); break; } } XFS_DevicesCollection.Instance.Add(ServiceTypes.IDC, XFSDevice); return(XFSDevice); } else { var XFSDevice = XFS_DevicesCollection.Instance.GetValue(Command.ServiceType); return(XFSDevice); } }
private void button8_Click(object sender, EventArgs e) { WFSIDCSTATUS stu = new WFSIDCSTATUS(); device.GetStatus(out stu); }