Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Main_Load(object sender, EventArgs e)
- {
- if(!Directory.Exists(_dataOpslag) || (!File.Exists(_achtergrondplaatje) || (!File.Exists(_profielfoto))))
- {
- Directory.CreateDirectory(_dataOpslag);
- if (!File.Exists(_achtergrondplaatje))
- {
- using (WebClient client = new WebClient())
- {
- client.DownloadFile("https://pixabay.com/static/uploads/photo/2013/07/13/11/26/film-158157_640.png", _achtergrondplaatje);
- }
- }
- if (!File.Exists(_profielfoto))
- {
- using (WebClient client = new WebClient())
- {
- client.DownloadFile("https://pixabay.com/static/uploads/photo/2014/04/03/10/32/user-310807_640.png", _profielfoto);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement