private FileConflictAction ShowFileConflictResolution(string message) { if (!_uiDispatcher.CheckAccess()) { object result = _uiDispatcher.Invoke( new Func <string, FileConflictAction>(ShowFileConflictResolution), message); return((FileConflictAction)result); } var fileConflictDialog = new FileConflictDialog() { Question = message }; if (fileConflictDialog.ShowModal() == true) { return(fileConflictDialog.UserSelection); } else { return(FileConflictAction.IgnoreAll); } }
private FileConflictAction ShowFileConflictResolution(string message) { if (!_uiDispatcher.CheckAccess()) { object result = _uiDispatcher.Invoke( new Func<string, FileConflictAction>(ShowFileConflictResolution), message); return (FileConflictAction)result; } var fileConflictDialog = new FileConflictDialog() { Question = message }; if (fileConflictDialog.ShowModal() == true) { return fileConflictDialog.UserSelection; } else { return FileConflictAction.IgnoreAll; } }