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);
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }