private void LoadRubyCommonScript()
{
if (m_rubyScriptCommonPath != null && File.Exists(m_rubyScriptCommonPath))
{
ReloadCommonRubyScript(null, null);
string dir = Path.GetDirectoryName(m_rubyScriptCommonPath);
string file = Path.GetFileName(m_rubyScriptCommonPath);
logger.Debug("Starting file watch on Ruby Common Script " + dir + @"\" + file + ".");
FileSystemWatcher rubyCommonWatcher = new FileSystemWatcher(dir, file);
rubyCommonWatcher.Changed += new FileSystemEventHandler(ReloadCommonRubyScript);
rubyCommonWatcher.EnableRaisingEvents = true;
}
}