using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using IReaper.Properties;
using IReaper.Command;
using System.Collections;
namespace IReaper{
class FileMonitor
{
public static void CheckRootPath(object sender, System.Configuration.SettingChangingEventArgs e)
{
if (e.SettingName == "RootPath")
{
if (e.NewValue.ToString() == Settings.Default.RootPath)
return;
CommandBase command = CommandManager.GetCommand(CommandFamily.Command_CloseSystem);
command.Execute(null, null);
Application.Restart();
}
}
}
}
|