internal static bool HandleFileOpen(string path) { if (!initialized) { return(false); } var result = fsWatchers.ResolveVC(path, true); if (result == null) { return(false); } if (addBuffer.Remove(path) || result.Status == VCItemStatus.Unknown) { var yes = TextHelper.GetString("Label.Yes"); var no = TextHelper.GetString("Label.No"); MessageBar.ShowQuestion(TextHelper.GetString("Info.AddFile"), new[] { yes, no }, s => { if (s == yes) { result.Manager.FileActions.FileNew(path); ForceRefresh(); } TraceManager.Add(s); }); } if (result.Status == VCItemStatus.Unknown) { return(false); } return(result.Manager.FileActions.FileOpen(path)); }