private void CheckMissingFiles()
        {
            var missingFiles = new List <string>();

            foreach (var file in _model.PicturesWithPeople.Keys)
            {
                if (!File.Exists(file))
                {
                    missingFiles.Add(file);
                }
            }

            if (missingFiles.Count != 0)
            {
                var message             = string.Format(Resources.MainWindow_CheckMissingFiles_FoundMissingFiles, missingFiles.Count);
                var filesNotFoundDialog = FilesNotFoundDialog.ShowDialog(
                    Resources.MainWindow_CheckMissingFiles_FoundMissingFiles_Title,
                    message,
                    missingFiles.ToArray());

                if (filesNotFoundDialog == DialogResult.Yes)
                {
                    foreach (var missingFile in missingFiles)
                    {
                        _model.PicturesWithPeople.Remove(missingFile);
                    }
                }
            }
        }
        public static DialogResult ShowDialog(string title, string caption, string[] notFoundFiles)
        {
            var prompt = new FilesNotFoundDialog(caption)
            {
                Text          = title,
                StartPosition = FormStartPosition.CenterScreen
            };

            prompt.SetValues(notFoundFiles);

            return(prompt.ShowDialog());
        }