Forráskód Böngészése

Отображение списка агентов

y.buzueva2002 2 éve
szülő
commit
6186d28a0b
100 módosított fájl, 265 hozzáadás és 17 törlés
  1. 1 0
      BuzuevaDemo/App.config
  2. 9 1
      BuzuevaDemo/App.xaml
  3. 140 6
      BuzuevaDemo/BuzuevaDemo.csproj
  4. 18 0
      BuzuevaDemo/Classes/Agent.cs
  5. 1 1
      BuzuevaDemo/Classes/DataBase.cs
  6. 45 0
      BuzuevaDemo/Classes/ViewModel.cs
  7. 3 3
      BuzuevaDemo/Model1.Context.cs
  8. 2 2
      BuzuevaDemo/Model1.edmx
  9. 1 1
      BuzuevaDemo/Model1.edmx.diagram
  10. 40 3
      BuzuevaDemo/Pages/Agents.xaml
  11. 5 0
      BuzuevaDemo/Pages/Agents.xaml.cs
  12. BIN
      BuzuevaDemo/agents/agent_1.png
  13. BIN
      BuzuevaDemo/agents/agent_10.png
  14. BIN
      BuzuevaDemo/agents/agent_100.png
  15. BIN
      BuzuevaDemo/agents/agent_101.png
  16. BIN
      BuzuevaDemo/agents/agent_102.png
  17. BIN
      BuzuevaDemo/agents/agent_103.png
  18. BIN
      BuzuevaDemo/agents/agent_104.png
  19. BIN
      BuzuevaDemo/agents/agent_105.png
  20. BIN
      BuzuevaDemo/agents/agent_106.png
  21. BIN
      BuzuevaDemo/agents/agent_107.png
  22. BIN
      BuzuevaDemo/agents/agent_108.png
  23. BIN
      BuzuevaDemo/agents/agent_109.png
  24. BIN
      BuzuevaDemo/agents/agent_11.png
  25. BIN
      BuzuevaDemo/agents/agent_110.png
  26. BIN
      BuzuevaDemo/agents/agent_111.png
  27. BIN
      BuzuevaDemo/agents/agent_112.png
  28. BIN
      BuzuevaDemo/agents/agent_113.png
  29. BIN
      BuzuevaDemo/agents/agent_114.png
  30. BIN
      BuzuevaDemo/agents/agent_115.png
  31. BIN
      BuzuevaDemo/agents/agent_116.png
  32. BIN
      BuzuevaDemo/agents/agent_117.png
  33. BIN
      BuzuevaDemo/agents/agent_118.png
  34. BIN
      BuzuevaDemo/agents/agent_119.png
  35. BIN
      BuzuevaDemo/agents/agent_12.png
  36. BIN
      BuzuevaDemo/agents/agent_120.png
  37. BIN
      BuzuevaDemo/agents/agent_121.png
  38. BIN
      BuzuevaDemo/agents/agent_122.png
  39. BIN
      BuzuevaDemo/agents/agent_123.png
  40. BIN
      BuzuevaDemo/agents/agent_124.png
  41. BIN
      BuzuevaDemo/agents/agent_125.png
  42. BIN
      BuzuevaDemo/agents/agent_126.png
  43. BIN
      BuzuevaDemo/agents/agent_127.png
  44. BIN
      BuzuevaDemo/agents/agent_128.png
  45. BIN
      BuzuevaDemo/agents/agent_129.png
  46. BIN
      BuzuevaDemo/agents/agent_13.png
  47. BIN
      BuzuevaDemo/agents/agent_130.png
  48. BIN
      BuzuevaDemo/agents/agent_14.png
  49. BIN
      BuzuevaDemo/agents/agent_15.png
  50. BIN
      BuzuevaDemo/agents/agent_16.png
  51. BIN
      BuzuevaDemo/agents/agent_17.png
  52. BIN
      BuzuevaDemo/agents/agent_18.png
  53. BIN
      BuzuevaDemo/agents/agent_19.png
  54. BIN
      BuzuevaDemo/agents/agent_2.png
  55. BIN
      BuzuevaDemo/agents/agent_20.png
  56. BIN
      BuzuevaDemo/agents/agent_21.png
  57. BIN
      BuzuevaDemo/agents/agent_22.png
  58. BIN
      BuzuevaDemo/agents/agent_23.png
  59. BIN
      BuzuevaDemo/agents/agent_24.png
  60. BIN
      BuzuevaDemo/agents/agent_25.png
  61. BIN
      BuzuevaDemo/agents/agent_26.png
  62. BIN
      BuzuevaDemo/agents/agent_27.png
  63. BIN
      BuzuevaDemo/agents/agent_28.png
  64. BIN
      BuzuevaDemo/agents/agent_29.png
  65. BIN
      BuzuevaDemo/agents/agent_3.png
  66. BIN
      BuzuevaDemo/agents/agent_30.png
  67. BIN
      BuzuevaDemo/agents/agent_31.png
  68. BIN
      BuzuevaDemo/agents/agent_32.png
  69. BIN
      BuzuevaDemo/agents/agent_33.png
  70. BIN
      BuzuevaDemo/agents/agent_34.png
  71. BIN
      BuzuevaDemo/agents/agent_35.png
  72. BIN
      BuzuevaDemo/agents/agent_36.png
  73. BIN
      BuzuevaDemo/agents/agent_37.png
  74. BIN
      BuzuevaDemo/agents/agent_38.png
  75. BIN
      BuzuevaDemo/agents/agent_39.png
  76. BIN
      BuzuevaDemo/agents/agent_4.png
  77. BIN
      BuzuevaDemo/agents/agent_40.png
  78. BIN
      BuzuevaDemo/agents/agent_41.png
  79. BIN
      BuzuevaDemo/agents/agent_42.png
  80. BIN
      BuzuevaDemo/agents/agent_43.png
  81. BIN
      BuzuevaDemo/agents/agent_44.png
  82. BIN
      BuzuevaDemo/agents/agent_45.png
  83. BIN
      BuzuevaDemo/agents/agent_46.png
  84. BIN
      BuzuevaDemo/agents/agent_47.png
  85. BIN
      BuzuevaDemo/agents/agent_48.png
  86. BIN
      BuzuevaDemo/agents/agent_49.png
  87. BIN
      BuzuevaDemo/agents/agent_5.png
  88. BIN
      BuzuevaDemo/agents/agent_50.png
  89. BIN
      BuzuevaDemo/agents/agent_51.png
  90. BIN
      BuzuevaDemo/agents/agent_52.png
  91. BIN
      BuzuevaDemo/agents/agent_53.png
  92. BIN
      BuzuevaDemo/agents/agent_54.png
  93. BIN
      BuzuevaDemo/agents/agent_55.png
  94. BIN
      BuzuevaDemo/agents/agent_56.png
  95. BIN
      BuzuevaDemo/agents/agent_57.png
  96. BIN
      BuzuevaDemo/agents/agent_58.png
  97. BIN
      BuzuevaDemo/agents/agent_59.png
  98. BIN
      BuzuevaDemo/agents/agent_6.png
  99. BIN
      BuzuevaDemo/agents/agent_60.png
  100. BIN
      BuzuevaDemo/agents/agent_61.png

+ 1 - 0
BuzuevaDemo/App.config

@@ -9,6 +9,7 @@
   </startup>
   <connectionStrings>
     <add name="user33Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=ngknn.ru;initial catalog=user33;user id=User33;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+    <add name="user33Entities1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=ngknn.ru;initial catalog=user33;user id=User33;password=wsruser33;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

+ 9 - 1
BuzuevaDemo/App.xaml

@@ -6,6 +6,14 @@
     <Application.Resources>
         <Style TargetType="TextBlock">
             <Setter Property="FontFamily" Value="Monotype Corsiva"/>
-        </Style> 
+            <Setter Property="FontSize" Value="17"/>
+        </Style>
+        <Style TargetType="Button">
+            <Setter Property="FontFamily" Value="Monotype Corsiva"/>
+        </Style>
+
+        <Style TargetType="TextBlock">
+            <Setter Property="FontFamily" Value="Monotype Corsiva"/>
+        </Style>
     </Application.Resources>
 </Application>

+ 140 - 6
BuzuevaDemo/BuzuevaDemo.csproj

@@ -78,8 +78,10 @@
       <DependentUpon>App.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Compile Include="Classes\Agent.cs" />
     <Compile Include="Classes\ChangePage.cs" />
     <Compile Include="Classes\DataBase.cs" />
+    <Compile Include="Classes\ViewModel.cs" />
     <Compile Include="MainWindow.xaml.cs">
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
@@ -150,16 +152,141 @@
   <ItemGroup>
     <None Include="App.config" />
   </ItemGroup>
-  <ItemGroup />
-  <ItemGroup>
-    <Resource Include="Img\Приятный шелест.ico" />
-    <Resource Include="Img\Приятный шелест.png" />
-  </ItemGroup>
   <ItemGroup>
+    <Resource Include="agents\agent_1.png" />
+    <Resource Include="agents\agent_10.png" />
+    <Resource Include="agents\agent_100.png" />
+    <Resource Include="agents\agent_101.png" />
+    <Resource Include="agents\agent_102.png" />
+    <Resource Include="agents\agent_103.png" />
+    <Resource Include="agents\agent_104.png" />
+    <Resource Include="agents\agent_105.png" />
+    <Resource Include="agents\agent_106.png" />
+    <Resource Include="agents\agent_107.png" />
+    <Resource Include="agents\agent_108.png" />
+    <Resource Include="agents\agent_109.png" />
+    <Resource Include="agents\agent_11.png" />
+    <Resource Include="agents\agent_110.png" />
+    <Resource Include="agents\agent_111.png" />
+    <Resource Include="agents\agent_112.png" />
+    <Resource Include="agents\agent_113.png" />
+    <Resource Include="agents\agent_114.png" />
+    <Resource Include="agents\agent_115.png" />
+    <Resource Include="agents\agent_116.png" />
+    <Resource Include="agents\agent_117.png" />
+    <Resource Include="agents\agent_118.png" />
+    <Resource Include="agents\agent_119.png" />
+    <Resource Include="agents\agent_12.png" />
+    <Resource Include="agents\agent_120.png" />
+    <Resource Include="agents\agent_121.png" />
+    <Resource Include="agents\agent_122.png" />
+    <Resource Include="agents\agent_123.png" />
+    <Resource Include="agents\agent_124.png" />
+    <Resource Include="agents\agent_125.png" />
+    <Resource Include="agents\agent_126.png" />
+    <Resource Include="agents\agent_127.png" />
+    <Resource Include="agents\agent_128.png" />
+    <Resource Include="agents\agent_129.png" />
+    <Resource Include="agents\agent_13.png" />
+    <Resource Include="agents\agent_130.png" />
+    <Resource Include="agents\agent_14.png" />
+    <Resource Include="agents\agent_15.png" />
+    <Resource Include="agents\agent_16.png" />
+    <Resource Include="agents\agent_17.png" />
+    <Resource Include="agents\agent_18.png" />
+    <Resource Include="agents\agent_19.png" />
+    <Resource Include="agents\agent_2.png" />
+    <Resource Include="agents\agent_20.png" />
+    <Resource Include="agents\agent_21.png" />
+    <Resource Include="agents\agent_22.png" />
+    <Resource Include="agents\agent_23.png" />
+    <Resource Include="agents\agent_24.png" />
+    <Resource Include="agents\agent_25.png" />
+    <Resource Include="agents\agent_26.png" />
+    <Resource Include="agents\agent_27.png" />
+    <Resource Include="agents\agent_28.png" />
+    <Resource Include="agents\agent_29.png" />
+    <Resource Include="agents\agent_3.png" />
+    <Resource Include="agents\agent_30.png" />
+    <Resource Include="agents\agent_31.png" />
+    <Resource Include="agents\agent_32.png" />
+    <Resource Include="agents\agent_33.png" />
+    <Resource Include="agents\agent_34.png" />
+    <Resource Include="agents\agent_35.png" />
+    <Resource Include="agents\agent_36.png" />
+    <Resource Include="agents\agent_37.png" />
+    <Resource Include="agents\agent_38.png" />
+    <Resource Include="agents\agent_39.png" />
+    <Resource Include="agents\agent_4.png" />
+    <Resource Include="agents\agent_40.png" />
+    <Resource Include="agents\agent_41.png" />
+    <Resource Include="agents\agent_42.png" />
+    <Resource Include="agents\agent_43.png" />
+    <Resource Include="agents\agent_44.png" />
+    <Resource Include="agents\agent_45.png" />
+    <Resource Include="agents\agent_46.png" />
+    <Resource Include="agents\agent_47.png" />
+    <Resource Include="agents\agent_48.png" />
+    <Resource Include="agents\agent_49.png" />
+    <Resource Include="agents\agent_5.png" />
+    <Resource Include="agents\agent_50.png" />
+    <Resource Include="agents\agent_51.png" />
+    <Resource Include="agents\agent_52.png" />
+    <Resource Include="agents\agent_53.png" />
+    <Resource Include="agents\agent_54.png" />
+    <Resource Include="agents\agent_55.png" />
+    <Resource Include="agents\agent_56.png" />
+    <Resource Include="agents\agent_57.png" />
+    <Resource Include="agents\agent_58.png" />
+    <Resource Include="agents\agent_59.png" />
+    <Resource Include="agents\agent_6.png" />
+    <Resource Include="agents\agent_60.png" />
+    <Resource Include="agents\agent_61.png" />
+    <Resource Include="agents\agent_62.png" />
+    <Resource Include="agents\agent_63.png" />
+    <Resource Include="agents\agent_64.png" />
+    <Resource Include="agents\agent_65.png" />
+    <Resource Include="agents\agent_66.png" />
+    <Resource Include="agents\agent_67.png" />
+    <Resource Include="agents\agent_68.png" />
+    <Resource Include="agents\agent_69.png" />
+    <Resource Include="agents\agent_7.png" />
+    <Resource Include="agents\agent_70.png" />
+    <Resource Include="agents\agent_71.png" />
+    <Resource Include="agents\agent_72.png" />
+    <Resource Include="agents\agent_73.png" />
+    <Resource Include="agents\agent_74.png" />
+    <Resource Include="agents\agent_75.png" />
+    <Resource Include="agents\agent_76.png" />
+    <Resource Include="agents\agent_77.png" />
+    <Resource Include="agents\agent_78.png" />
+    <Resource Include="agents\agent_79.png" />
+    <Resource Include="agents\agent_8.png" />
+    <Resource Include="agents\agent_80.png" />
+    <Resource Include="agents\agent_81.png" />
+    <Resource Include="agents\agent_82.png" />
+    <Resource Include="agents\agent_83.png" />
+    <Resource Include="agents\agent_84.png" />
+    <Resource Include="agents\agent_85.png" />
+    <Resource Include="agents\agent_86.png" />
+    <Resource Include="agents\agent_87.png" />
+    <Resource Include="agents\agent_88.png" />
+    <Resource Include="agents\agent_89.png" />
+    <Resource Include="agents\agent_9.png" />
+    <Resource Include="agents\agent_90.png" />
+    <Resource Include="agents\agent_91.png" />
+    <Resource Include="agents\agent_92.png" />
+    <Resource Include="agents\agent_93.png" />
+    <Resource Include="agents\agent_94.png" />
+    <Resource Include="agents\agent_95.png" />
+    <Resource Include="agents\agent_96.png" />
+    <Resource Include="agents\agent_97.png" />
+    <Resource Include="agents\agent_98.png" />
+    <Resource Include="agents\agent_99.png" />
     <Content Include="Model1.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
-      <LastGenOutput>Model1.Context.cs</LastGenOutput>
       <DependentUpon>Model1.edmx</DependentUpon>
+      <LastGenOutput>Model1.Context.cs</LastGenOutput>
     </Content>
     <Content Include="Model1.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
@@ -167,6 +294,13 @@
       <LastGenOutput>Model1.cs</LastGenOutput>
     </Content>
   </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Img\Приятный шелест.ico" />
+    <Resource Include="Img\Приятный шелест.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="agents\picture.png" />
+  </ItemGroup>
   <ItemGroup>
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>

+ 18 - 0
BuzuevaDemo/Classes/Agent.cs

@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BuzuevaDemo
+{
+    public partial class Agent
+    {
+        private string titletype;
+        public string TitleType
+        {
+            get { return titletype; }
+            set { titletype = value; }
+        }
+    }
+}

+ 1 - 1
BuzuevaDemo/Classes/DataBase.cs

@@ -8,6 +8,6 @@ namespace BuzuevaDemo.Classes
 {
     class DataBase
     {
-        public static user33Entities BaseModel = new user33Entities();
+        public static user33Entities1 BaseModel = new user33Entities1();
     }
 }

+ 45 - 0
BuzuevaDemo/Classes/ViewModel.cs

@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BuzuevaDemo.Classes
+{
+    class ViewModel
+    {
+        public List<Agent> agent;
+        public ViewModel()
+        {
+            agent = ListAgent();
+        }
+         public List<Agent> ListAgent()
+        {
+            List <Agent> agents = new List<Agent>();
+            Agent buffag;
+            List<Agent> bdagent = DataBase.BaseModel.Agent.ToList();
+            List<AgentType> bdagenttype = DataBase.BaseModel.AgentType.ToList();
+            List<ProductSale> bdproductSales = DataBase.BaseModel.ProductSale.ToList();
+            List<Product> bdproduct = DataBase.BaseModel.Product.ToList();
+            foreach (Agent bda in bdagent)
+            {
+                AgentType AT = DataBase.BaseModel.AgentType.FirstOrDefault(x => x.ID == bda.AgentTypeID);
+                bda.TitleType = AT.Title;
+                int skid = 0;
+                buffag = new Agent();
+                buffag.Title = bda.Title;
+                buffag.Phone = bda.Phone;
+                buffag.Priority = bda.Priority;
+                buffag.Logo = bda.Logo;
+                if (bda.Logo == "")
+                {
+                    bda.Logo = "/agents/picture.png";
+                }
+                agents.Add(buffag); ;
+            }
+            agents = DataBase.BaseModel.Agent.ToList();
+            return agents;
+        }
+
+    }
+}

+ 3 - 3
BuzuevaDemo/Model1.Context.cs

@@ -13,10 +13,10 @@ namespace BuzuevaDemo
     using System.Data.Entity;
     using System.Data.Entity.Infrastructure;
     
-    public partial class user33Entities : DbContext
+    public partial class user33Entities1 : DbContext
     {
-        public user33Entities()
-            : base("name=user33Entities")
+        public user33Entities1()
+            : base("name=user33Entities1")
         {
         }
     

+ 2 - 2
BuzuevaDemo/Model1.edmx

@@ -249,7 +249,7 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
-        <EntityContainer Name="user33Entities" annotation:LazyLoadingEnabled="true">
+        <EntityContainer Name="user33Entities1" annotation:LazyLoadingEnabled="true">
           <EntitySet Name="Agent" EntityType="Self.Agent" />
           <EntitySet Name="AgentType" EntityType="Self.AgentType" />
           <EntitySet Name="Product" EntityType="Self.Product" />
@@ -277,7 +277,7 @@
     <!-- C-S mapping content -->
     <edmx:Mappings>
       <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
-        <EntityContainerMapping StorageEntityContainer="Хранилище user33ModelContainer" CdmEntityContainer="user33Entities">
+        <EntityContainerMapping StorageEntityContainer="Хранилище user33ModelContainer" CdmEntityContainer="user33Entities1">
           <EntitySetMapping Name="Agent">
             <EntityTypeMapping TypeName="user33Model.Agent">
               <MappingFragment StoreEntitySet="Agent">

+ 1 - 1
BuzuevaDemo/Model1.edmx.diagram

@@ -4,7 +4,7 @@
   <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
-      <Diagram DiagramId="17f5de5cb4b94e1c81f323a163cd7f59" Name="Diagram1">
+      <Diagram DiagramId="9142a995f36a4ebaa1f61d52e092da18" Name="Diagram1">
         <EntityTypeShape EntityType="user33Model.Agent" Width="1.5" PointX="3" PointY="1" IsExpanded="true" />
         <EntityTypeShape EntityType="user33Model.AgentType" Width="1.5" PointX="0.75" PointY="1.875" IsExpanded="true" />
         <EntityTypeShape EntityType="user33Model.Product" Width="1.5" PointX="3" PointY="6.25" IsExpanded="true" />

+ 40 - 3
BuzuevaDemo/Pages/Agents.xaml

@@ -6,9 +6,46 @@
       xmlns:local="clr-namespace:BuzuevaDemo.Pages"
       mc:Ignorable="d" 
       d:DesignHeight="450" d:DesignWidth="800"
-      Title="Agents">
-
+      Title="Агенты">
+    <Page.Resources>
+        <DataTemplate x:Key="AllAgent">
+            <Border BorderThickness="1" BorderBrush="Black" Width="600">
+                <StackPanel Orientation="Horizontal">
+                    <Image Source="{Binding Logo}" Width="80" Height="80"/>
+                    <StackPanel Orientation="Vertical">
+                        <StackPanel Orientation="Horizontal">
+                            <TextBlock Text="{Binding TitleType}"/>
+                            <TextBlock Text =" | "/>
+                            <TextBlock  Text="{Binding Title}" />
+                        </StackPanel>
+                        <StackPanel Orientation="Horizontal">
+                            <TextBlock/>
+                            <TextBlock Text ="продаж за год" />
+                        </StackPanel>
+                        <TextBlock Text="{Binding Phone}"/>
+                        <StackPanel Orientation="Horizontal">
+                            <TextBlock Text ="Приоритетность:"/>
+                            <TextBlock Text="{Binding Priority}"/>
+                        </StackPanel>
+                    </StackPanel>
+                    <TextBlock FontSize="20"/>
+                </StackPanel>
+            </Border>
+        </DataTemplate>
+    </Page.Resources>
     <Grid>
-        
+        <Grid.RowDefinitions>
+            <RowDefinition Height="64*"/>
+            <RowDefinition Height="363*"/>
+            <RowDefinition Height="23*"/>
+        </Grid.RowDefinitions>
+        <StackPanel Orientation="Horizontal" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="#C6D7FF">
+            <GroupBox Header="Введите для поиска" Width="300">
+                <TextBox Height="40"/>
+            </GroupBox>
+            <ComboBox  Width="200" Margin="10, 5" Height="40"/>
+            <ComboBox  Width="200" Margin="10, 5" Height="40"/>
+        </StackPanel>
+        <ListBox  Grid.Row="1" x:Name="AllAgent" ItemTemplate="{StaticResource AllAgent}" />
     </Grid>
 </Page>

+ 5 - 0
BuzuevaDemo/Pages/Agents.xaml.cs

@@ -12,6 +12,7 @@ using System.Windows.Media;
 using System.Windows.Media.Imaging;
 using System.Windows.Navigation;
 using System.Windows.Shapes;
+using BuzuevaDemo.Classes;
 
 namespace BuzuevaDemo.Pages
 {
@@ -20,9 +21,13 @@ namespace BuzuevaDemo.Pages
     /// </summary>
     public partial class Agents : Page
     {
+        ViewModel view = new ViewModel();
+
         public Agents()
         {
             InitializeComponent();
+            AllAgent.ItemsSource = view.agent.ToList();
+            AllAgent.Items.Refresh();
         }
     }
 }

BIN
BuzuevaDemo/agents/agent_1.png


BIN
BuzuevaDemo/agents/agent_10.png


BIN
BuzuevaDemo/agents/agent_100.png


BIN
BuzuevaDemo/agents/agent_101.png


BIN
BuzuevaDemo/agents/agent_102.png


BIN
BuzuevaDemo/agents/agent_103.png


BIN
BuzuevaDemo/agents/agent_104.png


BIN
BuzuevaDemo/agents/agent_105.png


BIN
BuzuevaDemo/agents/agent_106.png


BIN
BuzuevaDemo/agents/agent_107.png


BIN
BuzuevaDemo/agents/agent_108.png


BIN
BuzuevaDemo/agents/agent_109.png


BIN
BuzuevaDemo/agents/agent_11.png


BIN
BuzuevaDemo/agents/agent_110.png


BIN
BuzuevaDemo/agents/agent_111.png


BIN
BuzuevaDemo/agents/agent_112.png


BIN
BuzuevaDemo/agents/agent_113.png


BIN
BuzuevaDemo/agents/agent_114.png


BIN
BuzuevaDemo/agents/agent_115.png


BIN
BuzuevaDemo/agents/agent_116.png


BIN
BuzuevaDemo/agents/agent_117.png


BIN
BuzuevaDemo/agents/agent_118.png


BIN
BuzuevaDemo/agents/agent_119.png


BIN
BuzuevaDemo/agents/agent_12.png


BIN
BuzuevaDemo/agents/agent_120.png


BIN
BuzuevaDemo/agents/agent_121.png


BIN
BuzuevaDemo/agents/agent_122.png


BIN
BuzuevaDemo/agents/agent_123.png


BIN
BuzuevaDemo/agents/agent_124.png


BIN
BuzuevaDemo/agents/agent_125.png


BIN
BuzuevaDemo/agents/agent_126.png


BIN
BuzuevaDemo/agents/agent_127.png


BIN
BuzuevaDemo/agents/agent_128.png


BIN
BuzuevaDemo/agents/agent_129.png


BIN
BuzuevaDemo/agents/agent_13.png


BIN
BuzuevaDemo/agents/agent_130.png


BIN
BuzuevaDemo/agents/agent_14.png


BIN
BuzuevaDemo/agents/agent_15.png


BIN
BuzuevaDemo/agents/agent_16.png


BIN
BuzuevaDemo/agents/agent_17.png


BIN
BuzuevaDemo/agents/agent_18.png


BIN
BuzuevaDemo/agents/agent_19.png


BIN
BuzuevaDemo/agents/agent_2.png


BIN
BuzuevaDemo/agents/agent_20.png


BIN
BuzuevaDemo/agents/agent_21.png


BIN
BuzuevaDemo/agents/agent_22.png


BIN
BuzuevaDemo/agents/agent_23.png


BIN
BuzuevaDemo/agents/agent_24.png


BIN
BuzuevaDemo/agents/agent_25.png


BIN
BuzuevaDemo/agents/agent_26.png


BIN
BuzuevaDemo/agents/agent_27.png


BIN
BuzuevaDemo/agents/agent_28.png


BIN
BuzuevaDemo/agents/agent_29.png


BIN
BuzuevaDemo/agents/agent_3.png


BIN
BuzuevaDemo/agents/agent_30.png


BIN
BuzuevaDemo/agents/agent_31.png


BIN
BuzuevaDemo/agents/agent_32.png


BIN
BuzuevaDemo/agents/agent_33.png


BIN
BuzuevaDemo/agents/agent_34.png


BIN
BuzuevaDemo/agents/agent_35.png


BIN
BuzuevaDemo/agents/agent_36.png


BIN
BuzuevaDemo/agents/agent_37.png


BIN
BuzuevaDemo/agents/agent_38.png


BIN
BuzuevaDemo/agents/agent_39.png


BIN
BuzuevaDemo/agents/agent_4.png


BIN
BuzuevaDemo/agents/agent_40.png


BIN
BuzuevaDemo/agents/agent_41.png


BIN
BuzuevaDemo/agents/agent_42.png


BIN
BuzuevaDemo/agents/agent_43.png


BIN
BuzuevaDemo/agents/agent_44.png


BIN
BuzuevaDemo/agents/agent_45.png


BIN
BuzuevaDemo/agents/agent_46.png


BIN
BuzuevaDemo/agents/agent_47.png


BIN
BuzuevaDemo/agents/agent_48.png


BIN
BuzuevaDemo/agents/agent_49.png


BIN
BuzuevaDemo/agents/agent_5.png


BIN
BuzuevaDemo/agents/agent_50.png


BIN
BuzuevaDemo/agents/agent_51.png


BIN
BuzuevaDemo/agents/agent_52.png


BIN
BuzuevaDemo/agents/agent_53.png


BIN
BuzuevaDemo/agents/agent_54.png


BIN
BuzuevaDemo/agents/agent_55.png


BIN
BuzuevaDemo/agents/agent_56.png


BIN
BuzuevaDemo/agents/agent_57.png


BIN
BuzuevaDemo/agents/agent_58.png


BIN
BuzuevaDemo/agents/agent_59.png


BIN
BuzuevaDemo/agents/agent_6.png


BIN
BuzuevaDemo/agents/agent_60.png


BIN
BuzuevaDemo/agents/agent_61.png


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott