using System;
using System.Collections.Generic;
using System.Text;
using IReaper.CourseData;
using IReaper.Properties;
using IReaper.Command;
namespace IReaper.Initializer{
public class LoadRawCourseDataTask : AbstractInitTask
{
protected override void JobContent()
{
//
try
{
this.InitManager.SetMessage(Resources.LoadingLocalCache);
//xml
CourseXmlParser.LoadXml();
//
CommandBase command = CommandManager.GetCommand(CommandFamily.Command_RefreshTreeNode);
command.Execute(null, null);
Core.CoreData[CoreDataType.HasCourse] = true;
}
catch
{
//xml
Core.CoreData[CoreDataType.HasCourse] = false;
}
}
}
}
|