public DataSet GetTLView(int terminalID) { //Get a view of open TLs DataSet tls = null; TLViewerService2Client client = new TLViewerService2Client(); try { tls = client.GetTLView2(terminalID); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(tls); }
public DataSet GetTerminals() { //Get a list of Argix terminals DataSet terminals = null; TLViewerService2Client client = new TLViewerService2Client(); try { terminals = client.GetTerminals2(); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); } catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); } return(terminals); }