using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using IReaper.Statues;
using IReaper.FileData;
namespace IReaper.Command{
class PauseDownloadCommand:CommandBase
{
public override CommandFamily Family
{
get { return CommandFamily.Command_PauseDownload; }
}
public override void CommandBody(object sender, params object[] paras)
{
if (paras == null || paras.Length != 1)
return;
IList<CourseFileData> Files = paras[0] as IList<CourseFileData>;
if (Files == null)
{
return;
}
PauseFileWork work = new PauseFileWork();
work.Data = Files;
BindBackgroundWorker(work);
work.RunWorkerAsync();
}
}
}
|