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"); } }
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"); } }