Explorar el Código

Добавил заглушки

Pavel Nagornev hace 2 años
padre
commit
ac93b54522
Se han modificado 4 ficheros con 5 adiciones y 0 borrados
  1. 1 0
      DemoExam/DemoExam.csproj
  2. BIN
      DemoExam/DemoExam.exe
  3. 4 0
      DemoExam/Model/PAgent.cs
  4. BIN
      DemoExam/images/picture.png

+ 1 - 0
DemoExam/DemoExam.csproj

@@ -191,6 +191,7 @@
   </ItemGroup>
   <ItemGroup />
   <ItemGroup>
+    <Resource Include="images\picture.png" />
     <Resource Include="images\logo.ico" />
     <Resource Include="images\logo.png" />
     <Content Include="Model\Model.Context.tt">

BIN
DemoExam/DemoExam.exe


+ 4 - 0
DemoExam/Model/PAgent.cs

@@ -37,6 +37,10 @@ namespace DemoExam.Model
             get
             {
                 string pathImage = Environment.CurrentDirectory + Logo;
+                if (Logo == null)
+                {
+                    pathImage = Environment.CurrentDirectory + @"\images\picture.png";
+                }
                 return pathImage;
             }
         }

BIN
DemoExam/images/picture.png