aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManager/ApartmentManager.csproj7
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentPage.xaml29
-rw-r--r--ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs30
-rw-r--r--ApartmentManager/ApartmentManager/View/LoginPage.xaml2
-rw-r--r--ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs5
-rw-r--r--HousingDatabase.ldfbin8388608 -> 8388608 bytes
-rw-r--r--HousingDatabase.mdfbin8388608 -> 8388608 bytes
7 files changed, 72 insertions, 1 deletions
diff --git a/ApartmentManager/ApartmentManager/ApartmentManager.csproj b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
index b08d130..a010a50 100644
--- a/ApartmentManager/ApartmentManager/ApartmentManager.csproj
+++ b/ApartmentManager/ApartmentManager/ApartmentManager.csproj
@@ -99,6 +99,9 @@
<Compile Include="Model\Class1.cs" />
<Compile Include="Persistency\Persistency.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="View\ApartmentPage.xaml.cs">
+ <DependentUpon>ApartmentPage.xaml</DependentUpon>
+ </Compile>
<Compile Include="View\LoginPage.xaml.cs">
<DependentUpon>LoginPage.xaml</DependentUpon>
</Compile>
@@ -124,6 +127,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
+ <Page Include="View\ApartmentPage.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
<Page Include="View\LoginPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml
new file mode 100644
index 0000000..8773f0f
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml
@@ -0,0 +1,29 @@
+<Page
+ x:Class="ApartmentManager.View.ApartmentPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:ApartmentManager.View"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Width="1000" Margin="50" >
+ <StackPanel Width="600" Height="200" VerticalAlignment="Top" HorizontalAlignment="Left">
+ <TextBlock Text="Apartment Address :" FontSize="20" ></TextBlock>
+ <TextBlock Text="Floor :" FontSize="20"></TextBlock>
+ <TextBlock Text="Apartment Number :" FontSize="20"></TextBlock>
+ <TextBlock Text="Size :" FontSize="20"></TextBlock>
+ <TextBlock Text="Number of Rooms :" FontSize="20"></TextBlock>
+ <TextBlock Text="Monthly Charge:" FontSize="20"></TextBlock>
+ </StackPanel>
+ <StackPanel Width="400" Height="300" VerticalAlignment="Top" HorizontalAlignment="Right">
+ <Button Margin="0,10,0,10" Content="Apartment Plan" HorizontalAlignment="Stretch"/>
+ <Button Margin="0,10,0,10" Content="Personal Info" HorizontalAlignment="Stretch"></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>
+ </StackPanel>
+ </StackPanel>
+ </Grid>
+</Page>
diff --git a/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs
new file mode 100644
index 0000000..8c9d26c
--- /dev/null
+++ b/ApartmentManager/ApartmentManager/View/ApartmentPage.xaml.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
+
+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 ApartmentPage : Page
+ {
+ public ApartmentPage()
+ {
+ this.InitializeComponent();
+ }
+ }
+}
diff --git a/ApartmentManager/ApartmentManager/View/LoginPage.xaml b/ApartmentManager/ApartmentManager/View/LoginPage.xaml
index bca57b4..80071d1 100644
--- a/ApartmentManager/ApartmentManager/View/LoginPage.xaml
+++ b/ApartmentManager/ApartmentManager/View/LoginPage.xaml
@@ -13,7 +13,7 @@
<TextBox ></TextBox>
<TextBlock Margin="0,10,0,10" Text="Password"></TextBlock>
<TextBox ></TextBox>
- <Button Margin="0,10,0,10" Content="Log In" HorizontalAlignment="Stretch"></Button>
+ <Button Margin="0,10,0,10" Content="Log In" HorizontalAlignment="Stretch" Click="click"></Button>
</StackPanel>
</Grid>
</Page>
diff --git a/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs b/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs
index 246ec8e..dcc17ee 100644
--- a/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs
+++ b/ApartmentManager/ApartmentManager/View/LoginPage.xaml.cs
@@ -26,5 +26,10 @@ namespace ApartmentManager.View
{
this.InitializeComponent();
}
+
+ private void click(object sender, RoutedEventArgs e)
+ {
+ Frame.Navigate(typeof(ApartmentPage));
+ }
}
}
diff --git a/HousingDatabase.ldf b/HousingDatabase.ldf
index 5130103..16ec302 100644
--- a/HousingDatabase.ldf
+++ b/HousingDatabase.ldf
Binary files differ
diff --git a/HousingDatabase.mdf b/HousingDatabase.mdf
index 7b24ca2..191f6dd 100644
--- a/HousingDatabase.mdf
+++ b/HousingDatabase.mdf
Binary files differ