Exemple #1
0
 //Interface
 public dlgRates(DriverRates rates)
 {
     //Constructor
     try {
         //Required for Windows Form Designer support
         InitializeComponent();
         this.ctlRates1.Rates = rates;
     }
     catch (Exception ex) { throw new ApplicationException("Failed to create new dlgRates.", ex); }
 }
Exemple #2
0
 public DriverComp(string terminalID, string terminal, DateTime start, DateTime end, Mediator mediator)
 {
     //Constructor
     try {
         this.mMediator       = mediator;
         this.mAgentNumber    = terminalID;
         this.mAgentName      = terminal;
         this.mStart          = start;
         this.mEnd            = end;
         this.mRoutesDS       = new DriverCompDS();
         this.mCompDS         = new DriverCompDS();
         this.mRates          = new DriverRates(this.mEnd, this.mAgentNumber, this.mAgentName);
         this.mTerminalConfig = FinanceFactory.GetTerminalConfiguration(this.mAgentNumber);
         RefreshDriverRoutes();
         RefreshRoadshowRoutes();
     }
     catch (ApplicationException ex) { throw ex; }
     catch (Exception ex) { throw new ApplicationException("Failed to instantiate a new ship schedule.", ex); }
 }