Example #1
0
        private void newWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var imageViewForm = new FormImageView(_imageViewFormIdCnt++, _formAddBookmark, _bookmarkService.BookmarkManager, _applicationSettingsService, _imageCacheService, _imageLoaderService);

            _imageViewFormList.Add(imageViewForm);
            imageViewForm.FormClosed += imageViewForm_FormClosed;
            imageViewForm.Show();

            if (_formWindows != null && !_formWindows.IsDisposed)
            {
                _formWindows.Subscribe(imageViewForm);
            }

            Focus();
        }
Example #2
0
 public void Subscribe(FormImageView provider)
 {
     _formDisposables.Add(provider.Subscribe(this));
 }