コード例 #1
0
ファイル: terminal.cs プロジェクト: jpheary/Argix08
 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; }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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); }
 }