Unconfirmed code, but I remember how I did the trick like before.
First of all, when you open a file or save a file, the OnChanged event will (hopefully) fire several times. This way you can see that at some point you get the correct file name. To see this, you can use the file existence function and some other methods. About one way or another:
public void OnChanged(object source, FileSystemEventArgs e) { if (e.FullPath.Contains("~$"))
If you have not received the required file, you can subscribe to another event - the rename event.
source share