瀏覽代碼

BufPicture

Алексей Колесов 2 年之前
父節點
當前提交
c81cc49722
共有 3 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      ProbnikDemo/Clasi/PartAgent.cs
  2. 1 0
      ProbnikDemo/ProbnikDemo.csproj
  3. 二進制
      ProbnikDemo/agents/picture.png

+ 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" />

二進制
ProbnikDemo/agents/picture.png