Quellcode durchsuchen

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

Pavel Nagornev vor 2 Jahren
Ursprung
Commit
ac93b54522
4 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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