Ky So 2 năm trước cách đây
mục cha
commit
45c8657a55
3 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 1 1
      p/MainWindow.xaml.cs
  2. 2 2
      p/PageService.xaml
  3. 3 1
      p/PageService.xaml.cs

+ 1 - 1
p/MainWindow.xaml.cs

@@ -25,7 +25,7 @@ namespace p
             InitializeComponent();
             BaseConnect.BaseModel = new user28Entities();
             PageLoad.MainFrame = FrameMain;
-          
+            FrameMain.Navigate(new PageService());
         }
     }
 }

+ 2 - 2
p/PageService.xaml

@@ -16,7 +16,7 @@
                             <Image x:Name="Image" Source="{Binding Logo}" Height="75px" Width="75px"/>
                             <StackPanel Orientation="Vertical">
                                 <TextBlock x:Name="Title" Text="{Binding Title}"/>
-
+                                <TextBlock x:Name="Address" Text="{Binding Address}"/>
 
                                 <StackPanel Orientation="Horizontal">
                                     <Button x:Name="EditService" Content="Редактировать" Uid="{Binding Id_Agent}" Click="EditService_Click" Visibility="{Binding visiblebtn}" Margin="0 0 10 0"/>
@@ -64,7 +64,7 @@
 
 
 
-            <GroupBox Header="Сортировка" Margin="0,0,0,0.4" Width="334">
+            <GroupBox Header="Сортировка" Width="562">
                 <StackPanel Orientation="Horizontal" Margin="0,0,-2,0">
                     <Button x:Name="CostSortButtum" Content="Цена" Click="CostSortButtum_Click" Width="130" Height="25" Margin="0,12,0,11"/>
 

+ 3 - 1
p/PageService.xaml.cs

@@ -20,10 +20,12 @@ namespace p
     /// </summary>
     public partial class PageService : Page
     {
-        
+      
+
         public PageService()
         {
             InitializeComponent();
+            DataContext = BaseConnect.BaseModel.Agent.ToList();
             
         }