aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulius Klezys <paul4618@edu.easj.dk>2017-05-22 21:08:21 +0200
committerPaulius Klezys <paul4618@edu.easj.dk>2017-05-22 21:08:21 +0200
commitfd19b684a2a43b456cbbb8c49b66ff3f1624790d (patch)
tree44df4179c9c93a1706400f72ca12da842bea243b
parent60385d4477827ed0c75ff2f3800a5c0a7b60ec4d (diff)
sAtyy
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml7
-rw-r--r--ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs22
2 files changed, 12 insertions, 17 deletions
diff --git a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml
index a6aec28..7e164a5 100644
--- a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml
+++ b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml
@@ -17,22 +17,17 @@
<StackPanel Margin="0 0" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="top" Width="1100" >
<StackPanel Orientation="Vertical">
- <!--<Image Source="ms-appx:///Assets/plan.jpg" HorizontalAlignment="Left" Margin="0 0" Width="600"></Image>-->
<Frame Background="Bisque">
<ListView FontSize="20" FontWeight="Bold" FontFamily="Georgia" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1100" ItemsSource="{Binding BoardMemberCatalogSingleton.Apartment}" SelectedItem="{Binding NewApartment, Mode=TwoWay}" Height="567"/>
-
</Frame>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0">
<Button Width="150" Margin="50 0" Content="View residents" Click="ButtonBase_OnClick"></Button>
<Button Width="150" Content="Add apartment" Click="CreateApartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
<Button Width="150" Margin="50 0" Content="Delete apartment" Command="{Binding DeleteApartmentCommand}" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
<Button Width="150" Content="Update apartment" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Button>
- <TextBox Width="150" Text="Filter apartments" Margin="50 0" Name="TextFilter"> </TextBox>
-
+ <TextBox Width="150" Text="Filter apartments" Margin="50 0" Name="TextFilter"></TextBox>
</StackPanel>
</StackPanel>
-
-
</StackPanel>
</Grid>
</Page>
diff --git a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs
index 81fa3a8..e247306 100644
--- a/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs
+++ b/ApartmentManager/ApartmentManager/View/BoardMemberManageApartment.xaml.cs
@@ -39,17 +39,17 @@ namespace ApartmentManager.View
this.Frame.Navigate(typeof(BoardMemberCreateApartmentPage));
}
- private bool ApartmentFilter(object item)
- {
- if (String.IsNullOrEmpty(TextFilter.Text))
- return true;
- else
- return ((item as Apartment).BoardMemberCatalogSingleton.IndexOf(TextFilter.Text, StringComparison.OrdinalIgnoreCase) >= 0);
- }
+ //private bool ApartmentFilter(object item)
+ //{
+ // if (String.IsNullOrEmpty(TextFilter.Text))
+ // return true;
+ // else
+ // return ((item as Apartment).BoardMemberCatalogSingleton.IndexOf(TextFilter.Text, StringComparison.OrdinalIgnoreCase) >= 0);
+ //}
- private void txtFilter_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
- {
- CollectionViewSource.GetDefaultView(lvUsers.ItemsSource).Refresh();
- }
+ //private void txtFilter_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
+ //{
+ // CollectionViewSource.GetDefaultView(lvUsers.ItemsSource).Refresh();
+ //}
}
}