public LocalTerminal(TerminalDS.DBATerminalTableRow terminal) : base(terminal) { //Constructor try { //Configure this terminal from the terminal configuration information this.mIndirectAssignments = new Hashtable(); } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new LocalTerminal instance.", ex); } }
public DataSet ToDataSet() { //Return a dataset containing values for this terminal TerminalDS ds = null; try { ds = new TerminalDS(); TerminalDS.DBATerminalTableRow terminal = ds.DBATerminalTable.NewDBATerminalTableRow(); terminal.TerminalID = this.mTerminalID; terminal.Description = this.mDescription; ds.DBATerminalTable.AddDBATerminalTableRow(terminal); } catch (Exception) { } return(ds); }
public EnterpriseTerminal(TerminalDS.DBATerminalTableRow terminal) { //Constructor try { //Configure this terminal from the terminal configuration information if (terminal != null) { this.mTerminalID = terminal.TerminalID; this.mDescription = terminal.Description; this.mMediator = new SQLMediator(terminal.SQLConnection); } //getLocalTerminal(); } catch (Exception ex) { throw ex; } }