private void SaveFile(string path, string json) { File.WriteAllText(path, json); mFileDataMap.Remove(path); this.Invoke(new MethodInvoker(() => LoadFilePreview(path))); }