diff options
author | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-04-28 17:46:38 +0200 |
---|---|---|
committer | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-04-28 17:46:38 +0200 |
commit | 27898323659892ab34e12830def3aae9c3f83fb2 (patch) | |
tree | 98e4acb77b93c64ee0358758fb2f09cfde7af3b7 | |
parent | 2f67f8c6afb97c7abe432cf0a051b7505a7d5273 (diff) |
personal info page
-rw-r--r-- | ApartmentManager/ApartmentManager/ApartmentManager.csproj | 6 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/View/ApartmentPage.xaml | 2 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs | 7 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml (renamed from ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml) | 22 | ||||
-rw-r--r-- | ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml.cs (renamed from ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml.cs) | 4 |
5 files changed, 23 insertions, 18 deletions
diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj index d053bdb..240b879 100644 --- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj +++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj @@ -110,8 +110,8 @@ <Compile Include="View\LoginPage.xaml.cs"> <DependentUpon>LoginPage.xaml</DependentUpon> </Compile> - <Compile Include="View\PersonalInfoPagexaml.xaml.cs"> - <DependentUpon>PersonalInfoPagexaml.xaml</DependentUpon> + <Compile Include="View\PersonalInfoPage.xaml.cs"> + <DependentUpon>PersonalInfoPage.xaml</DependentUpon> </Compile> </ItemGroup> <ItemGroup> @@ -143,7 +143,7 @@ <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </Page> - <Page Include="View\PersonalInfoPagexaml.xaml"> + <Page Include="View\PersonalInfoPage.xaml"> <SubType>Designer</SubType> <Generator>MSBuild:Compile</Generator> </Page> diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml index da8d7dd..c2a3594 100644 --- a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml +++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml @@ -19,7 +19,7 @@ </StackPanel> <StackPanel Width="400" Height="300" VerticalAlignment="Top" HorizontalAlignment="Right"> <Button Margin="0,10,0,10" Content="Apartment Plan" HorizontalAlignment="Stretch" Click="click"/> - <Button Margin="0,10,0,10" Content="Personal Info" HorizontalAlignment="Stretch"></Button> + <Button Margin="0,10,0,10" Content="Personal Info" HorizontalAlignment="Stretch" Click="GotoPernalInfoPage"></Button> <Button Margin="0,10,0,10" Content="Residents" HorizontalAlignment="Stretch"></Button> <Button Margin="0,10,0,10" Content="Apartment Changes" HorizontalAlignment="Stretch"></Button> <Button Margin="0,10,0,10" Content="Apartment Defects" HorizontalAlignment="Stretch"></Button> diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs index 32f0079..f977517 100644 --- a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs +++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs @@ -29,7 +29,12 @@ namespace ApartmentManager.View private void click(object sender, RoutedEventArgs e) { - Frame.Navigate(typeof(ApartmentPlanPage)); + + } + + private void GotoPernalInfoPage(object sender, RoutedEventArgs e) + { + Frame.Navigate(typeof(PersonalInfoPage)); } } } diff --git a/ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml index ca652b3..5e84fcf 100644 --- a/ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml +++ b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml @@ -1,5 +1,5 @@ <Page - x:Class="ApartmentManager.View.PersonalInfoPagexaml" + x:Class="ApartmentManager.View.PersonalInfoPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:ApartmentManager.View" @@ -9,17 +9,17 @@ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <StackPanel Margin="50"> - <StackPanel Width="400"> - <TextBlock Margin="0,10,0,10" Text="Name"></TextBlock> - <TextBox ></TextBox> - <TextBlock Margin="0,10,0,10" Text="Last Name"></TextBlock> + <StackPanel Width="400"> + <TextBlock Margin="0,10,0,10" Text="Name"></TextBlock> + <TextBox ></TextBox> + <TextBlock Margin="0,10,0,10" Text="Last Name"></TextBlock> + <TextBox ></TextBox> + <TextBlock Margin="0,10,0,10" Text="Birthdate"></TextBlock> + <DatePicker HorizontalAlignment="Stretch"></DatePicker> + <TextBlock Margin="0,10,0,10" Text="Email Address"></TextBlock> + <TextBox ></TextBox> + <TextBlock Margin="0,10,0,10" Text="Phone Number"></TextBlock> <TextBox ></TextBox> - <TextBlock Margin="0,10,0,10" Text="Birthdate"></TextBlock> - <DatePicker HorizontalAlignment="Stretch"></DatePicker> - <TextBlock Margin="0,10,0,10" Text="Email Address"></TextBlock> - <TextBox ></TextBox> - <TextBlock Margin="0,10,0,10" Text="Phone Number"></TextBlock> - <TextBox ></TextBox> <Button Margin="0,10,0,10" Content="Update" HorizontalAlignment="Stretch"></Button> </StackPanel> </StackPanel> diff --git a/ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml.cs b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml.cs index 692570e..984e8af 100644 --- a/ApartmentManager/ApartmentManager/View/PersonalInfoPagexaml.xaml.cs +++ b/ApartmentManager/ApartmentManager/View/PersonalInfoPage.xaml.cs @@ -20,9 +20,9 @@ namespace ApartmentManager.View /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> - public sealed partial class PersonalInfoPagexaml : Page + public sealed partial class PersonalInfoPage : Page { - public PersonalInfoPagexaml() + public PersonalInfoPage() { this.InitializeComponent(); } |