Алексей Колесов 2 лет назад
Родитель
Сommit
c81cc49722

+ 3 - 0
ProbnikDemo/Clasi/PartAgent.cs

@@ -21,6 +21,9 @@ namespace ProbnikDemo
             Random r = new Random();
             foreach (Agent a in agents)
             {
+                if( a.Logo == ""){
+                    a.Logo = "/agents/picture.png";
+                }
                 AgentType agentType = BaseConnect.BaseModel.AgentType.FirstOrDefault(x => x.ID == a.AgentTypeID);
                 a.AgentTypes = agentType.Title;
 

+ 1 - 0
ProbnikDemo/ProbnikDemo.csproj

@@ -167,6 +167,7 @@
   </ItemGroup>
   <ItemGroup />
   <ItemGroup>
+    <Resource Include="agents\picture.png" />
     <Resource Include="agents\agent_1.png" />
     <Resource Include="agents\agent_10.png" />
     <Resource Include="agents\agent_100.png" />

BIN
ProbnikDemo/agents/picture.png