public FileConflictResolution ShowFileConflictResolution(string question) { if (!_uiDispatcher.CheckAccess()) { object result = _uiDispatcher.Invoke( new Func <string, FileConflictResolution>(ShowFileConflictResolution), question); return((FileConflictResolution)result); } var window = new FileConflictDialog { Question = question }; if (window.ShowModal() ?? false) { return(window.UserSelection); } return(FileConflictResolution.IgnoreAll); }
public FileConflictResolution ShowFileConflictResolution(string question) { if (!_uiDispatcher.CheckAccess()) { object result = _uiDispatcher.Invoke( new Func<string, FileConflictResolution>(ShowFileConflictResolution), question); return (FileConflictResolution)result; } var window = new FileConflictDialog { Question = question }; if (window.ShowModal() ?? false) { return window.UserSelection; } return FileConflictResolution.IgnoreAll; }