internal void fileChangedWatcher_ChangedInUIThread(System.IO.FileSystemEventArgs e)
{
double originalOpacity = this.Title.Opacity;
this.Title.Opacity = 0.2;
if (StyledMessageBox.Show("FILE MODIFIED", e.FullPath + "\n\nwas modified outside this application, do you want to reload ?"))
{
this.OpenFile(this.fullFileName);
System.Threading.Interlocked.Exchange(ref this.lastFileChangeTime, System.DateTime.Now.AddSeconds(2).Ticks);
}
this.Title.Opacity = originalOpacity;
showFileModifiedDialog.Release();
}