Browse Source

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

Pavel Nagornev 2 years ago
parent
commit
ac93b54522
4 changed files with 5 additions and 0 deletions
  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