using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.ComponentModel;
using IReaper.Category;
using IReaper.Properties;
using IReaper.Statues;
namespace IReaper.Command{
/*
*
*/
class SynchorizeCourseDataCommand : CommandBase
{
public override CommandFamily Family
{
get { return CommandFamily.Command_SynchorizeCourseData; }
}
public override void CommandBody(object sender, params object[] paras)
{
//Webcast
SynchorizeDataWork synWork = new SynchorizeDataWork();
synWork.RunWorkerCompleted += new RunWorkerCompletedEventHandler(synWork_RunWorkerCompleted);
synWork.RunWorkerAsync();
//
//
}
void synWork_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
//if (this.view == null)
// return;
//if (this.view.Nodes.Count > 0)
// return;
CommandBase command = CommandManager.GetCommand(CommandFamily.Command_RefreshTreeNode);
command.ExecuteAsync(null, null);
}
}
}
|