public EnterpriseTerminal(TerminalDS.LocalTerminalTableRow terminal) { //Constructor try { //Configure this terminal from the terminal configuration information if (terminal != null) { this.mTerminalID = terminal.TerminalID; this.mDescription = terminal.Description; } getLocalTerminal(); } catch (Exception ex) { throw ex; } }
public DataSet ToDataSet() { //Return a dataset containing values for this terminal TerminalDS ds = null; try { ds = new TerminalDS(); TerminalDS.LocalTerminalTableRow terminal = ds.LocalTerminalTable.NewLocalTerminalTableRow(); terminal.TerminalID = this.mTerminalID; terminal.Description = this.mDescription; ds.LocalTerminalTable.AddLocalTerminalTableRow(terminal); } catch (Exception) { } return(ds); }
public EnterpriseTerminal(TerminalDS.LocalTerminalTableRow terminal, Mediator mediator) { //Constructor this.mMediator = mediator; try { //Configure this terminal from the terminal configuration information if (terminal != null) { this.mTerminalID = terminal.TerminalID; this.mDescription = terminal.Description; } getLocalTerminal(); } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new EnterpriseTerminal instance.", ex); } }