コード例 #1
0
 public DefaultTermsOptionPage(EasyConsoleCore.Program program, Term defaultTerm) : base("Calculate loan payments", program, new[]
 {
     new Option("No", () => program.NavigateTo <CalculateLoanPage>()),
     new Option("Yes", () => program.NavigateTo <ChangeTermsPage>()),
 })
 {
     _defaultTerm = defaultTerm;
 }
コード例 #2
0
 public WelcomePage(EasyConsoleCore.Program program, Term defaultTerm, Term effectiveTerm) : base("Cloud Engineer Banking Challenge", program, new []
 {
     new Option("Calculate", () => program.NavigateTo <DefaultTermsOptionPage>()),
     new Option("Calculation history", () => program.NavigateTo <HistoryPage>()),
     new Option("About", () => program.NavigateTo <AboutPage>()),
 })
 {
     effectiveTerm.MaxAdministrationFee     = defaultTerm.MaxAdministrationFee;
     effectiveTerm.AdministrationFeePercent = defaultTerm.AdministrationFeePercent;
     effectiveTerm.Interest = defaultTerm.Interest;
 }
コード例 #3
0
ファイル: MainMenuPage.cs プロジェクト: edmd/flight-booking
        public MainMenuPage(EasyConsoleCore.Program program)
            : base("Main Page", program,

                   /*new Option("Add General Passenger", () => program.NavigateTo<AddGeneralPassengerPage>()),
                    *              new Option("Add Loyalty Passenger", () => program.NavigateTo<AddLoyaltyPassengerPage>()),
                    *              new Option("Add Airline Passenger", () => program.NavigateTo<AddAirlinePassengerPage>()),
                    *              new Option("Add Discount Passenger", () => program.NavigateTo<AddDiscountPassengerPage>()),*/
                   new Option("Load Passengers", () => program.NavigateTo <BulkLoadPassengerPage>()),
                   new Option("Display Summary", () => program.NavigateTo <DisplaySummaryPage>()))
        {
        }
コード例 #4
0
 public AddLoyaltyPassengerPage(EasyConsoleCore.Program program)
     : base("Add Loyalty Passenger", program)
 {
 }
コード例 #5
0
 public OrderListMenu(EasyConsoleCore.Program program)
     : base("Order list", program)
 {
     this.program = program;
 }
コード例 #6
0
 public MainMenu(EasyConsoleCore.Program program)
     : base("Main Menu", program)
 {
     this.program = program;
 }
コード例 #7
0
 public AddGeneralPassengerPage(EasyConsoleCore.Program program)
     : base("Add General Passenger", program)
 {
 }
コード例 #8
0
 public Receipt(EasyConsoleCore.Program program)
     : base("Receipt", program)
 {
     this.program = program;
 }
コード例 #9
0
 public DisplaySummaryPage(EasyConsoleCore.Program program)
     : base("Summary Page", program)
 {
 }
コード例 #10
0
 public PayMenu(EasyConsoleCore.Program program)
     : base("Pay", program)
 {
     this.program = program;
 }
コード例 #11
0
        public IngredientsMenu(EasyConsoleCore.Program program)
            : base("Ingredients menu", program)

        {
            this.program = program;
        }
コード例 #12
0
 public BulkLoadPassengerPage(EasyConsoleCore.Program program)
     : base("Load Passengers", program)
 {
 }
コード例 #13
0
 public CalculateLoanPage(EasyConsoleCore.Program program, Term effectiveTerm, ILoanService loanService) : base("Calculate loan payments", program)
 {
     _effectiveTerm = effectiveTerm;
     _loanService   = loanService;
 }
コード例 #14
0
ファイル: StartMenu.cs プロジェクト: diarmarqus/newton_grupp3
        public StartMenu(EasyConsoleCore.Program program)
            : base("Pizza Palatset", program)

        {
            this.program = program;
        }
コード例 #15
0
 public ChangeTermsPage(EasyConsoleCore.Program program, Term effectiveTerm) : base("Calculate loan payments", program)
 {
     _effectiveTerm = effectiveTerm;
 }
コード例 #16
0
 public AddDiscountPassengerPage(EasyConsoleCore.Program program)
     : base("Add Passenger", program)
 {
 }
コード例 #17
0
 public AboutPage(EasyConsoleCore.Program program) : base("Calculations history", program)
 {
 }
コード例 #18
0
 public HistoryPage(EasyConsoleCore.Program program, IHistoryRepository historyRepository) : base("Calculations history", program)
 {
     _historyRepository = historyRepository;
 }