private void LoadPictureViewer(object sender = null, EventArgs args = null)
        {
            if (pictureViewerService == null)
            {
                //pictureFilesBS = new BindingSource();
                //pictureFilesBS.DataSource =
                //pictureFilesBS.AllowNew = false;
                pictureGridView.AutoGenerateColumns = false;
                pictureGridView.ItemsSource         = new List <RegisterFile>();

                pictureFolderListBox.Items.Clear();
                pictureFolderListBox.DisplayMemberPath = "Value";
                pictureFolderListBox.SelectedValuePath = "Key";

                pictureViewerService = new PictureViewerService();
                pictureViewerService.OnPictureSelected += SelectPictureFileOnSelection;

                picturePresenter = new PicturePresenter(this, pictureViewerService);
            }
            picturePresenter.LoadPictureDirectories();
        }
 public PicturePresenter(MainWindow form, PictureViewerService service)
 {
     _form    = form;
     _service = service;
 }