aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
+ //}
}
}