using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using IReaper.FileData;
using IReaper.Properties;
using IReaper.Configurations;
namespace IReaper.Initializer{
class StartUpCriticalCheckTask : AbstractInitTask
{
protected override void JobContent()
{
//
string rootpath = Settings.Default.RootPath;
this.InitManager.SetMessage(Resources.CheckRoot + rootpath);
if (!Directory.Exists(rootpath))
{
AutoResetEvent even = new AutoResetEvent(false);
CourseFileData.async.Post(delegate(object obj)
{
StartUpCriticalCheck config = new StartUpCriticalCheck();
config.ShowDialog();
even.Set();
}, null);
even.WaitOne();
}
}
}
}
|