Beispiel #1
0
 public void LoadTexture()
 {
     if (whiteDefault == null || (whiteDefault != null && whiteDefault.IsDisposed))
     {
         whiteDefault = device.LoadTextureFromFile(Application.StartupPath + "/Resources/WhiteDefault.png");
     }
     if (arrowDefault == null || (arrowDefault != null && arrowDefault.IsDisposed))
     {
         arrowDefault = device.LoadTextureFromFile(Application.StartupPath + "/Resources/ArrowDefault.png");
     }
 }
Beispiel #2
0
 public void LoadTexture()
 {
     if (whiteDefault != null)
     {
         if (whiteDefault.IsDisposed)
         {
             whiteDefault = device.LoadTextureFromFile(Application.StartupPath + "\\Resources\\WhiteDefault.png");
         }
     }
     else
     {
         whiteDefault = device.LoadTextureFromFile(Application.StartupPath + "\\Resources\\WhiteDefault.png");
     }
 }