Professional Documents
Culture Documents
{
bool save = false;
}));
if (save)
{
if (data.Medias != null) lastDataReceive.Medias = data.Medias;
if (data.SetariComenziLcd.Setari != null) lastDataReceive.Setari
ComenziLcd.Setari = data.SetariComenziLcd.Setari;
SaveConfig(lastDataReceive);
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IWTVnew.MediaDisplay.Core;
using System.Net;
using System.Configuration;
using System.Windows.Threading;
namespace IWTVnew.MediaDisplay.Concret.Other
{
public class ServerDownload : AServerDownload<Media>
{
lock (mediasToDownload)
{
mediasToDownload.Add(media);
if (webClient == null)
{
WebDownload(media);
}
}
}
}
public override void CancelDownload()
{
lock (mediasToDownload)
{
if (webClient!= null)webClient.CancelAsync();
mediasToDownload.Clear();
webClient = null;
}
}
}
}