21 April 2017

Assignment

  1. Create Login form on MainPage.xaml as following:                                             [1]
Fig 0. MainPage.xaml GUI
(Note: Grid Background=”Brown”)
Control
x:Name
Text/PlaceHolderText
Event
Handler
TextBox
xnUsername
Input Username
KeyDown
OnKeyDown()
TextBox
xnPassword
Input Password
KeyDown
OnKeyDown()
Button
xnLogin
Login
Click
Login_Click
Button
xnRegister
Register
Click
Register_Click()


  1. Functions: On MainPage.xaml.cs                                                                              [8]
Return Type
Methods
Description
void
MainPage()
Use Navigation Cache so when users come back to this page, they can quickly Log In back to PlacePage without having to re-type their log in information.
Also use Navigation Cache on PlacePage so when user go back to the page, all previous information which user is working on will be there. [2]
void
Login_Click(object sender, RoutedEventArgs e)
Get all PasswordCredential in PasswordVault by Resource “Aptech”. If any PasswordCredential match with inputted Username and Password then navigate to BookingPage. Else, show a notification that “Login failed!” [3]
void
Register_Click(object sender, RoutedEventArgs e)
Add the inputted Username and Password as PasswordCredential with Resource “Aptech” into PasswordVault. [3]

3.      Create BookingPage with textboxes to accept Name, City,
a.       Mobile number and Email id of the customer along with a command button.
b.      When customer clicks on Submit button, display a page with a link “Previous”.

c.       Using cache management write code so when user visits previous page, all entered data should be saved in the textbox.

0 nhận xét:

Post a Comment

 

BACK TO TOP

Xuống cuối trang