using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using IReaper.Initializer;
namespace IReaper.Statues{
/*
*
* 1.ConditionalHttp
* 2.ConditionalHttp
* 3.CheckInfoXmlTaskIInitializableBridge
*/
public partial class SynchorizeDataWork : AsyncWork
{
public SynchorizeDataWork()
{
InitializeComponent();
}
public SynchorizeDataWork(IContainer container)
{
container.Add(this);
InitializeComponent();
}
protected override void OnDoWork(DoWorkEventArgs e)
{
base.OnDoWork(e);
/*
*/
IStatusStripIInitBridege bridge = new IStatusStripIInitBridege();
bridge.IReaperStatusStrip = this.Status;
CheckInfoXMLTask task = new CheckInfoXMLTask();
task.InitManager = bridge;
task.Invoke();
//
if (task.ResultObject != null && task.ResultObject.ToString() == "Modified")
//
{
CourseData.CourseXmlParser.LoadXml();
FileData.CourseFileDataManager.DispathStorage();
}
}
}
}
|