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);
        }
示例#2
0
        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;
        }