Exemplo n.º 1
0
        /// <summary>
        /// Invoke the 'Filter Publishers' form to change which publishers are filtered
        /// </summary>
        public void FilterPublishers()
        {
            FormFilterPublishers form = new FormFilterPublishers();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // Update our copy of the filter
                _publisherFilter = form.PublisherFilter;

                // OK - Fire an event to indicate to any interested parties that the list of
                // publisher filters has changed
                FirePublisherFilterChangedEvent();
            }
        }
        /// <summary>
        /// Invoke the 'Filter Publishers' form to change which publishers are filtered
        /// </summary>
        public void FilterPublishers()
        {
            FormFilterPublishers form = new FormFilterPublishers();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                // Update our copy of the filter
                _publisherFilter = form.PublisherFilter;

                // OK - Fire an event to indicate to any interested parties that the list of
                // publisher filters has changed
                if (PublisherFilterChanged != null)
                {
                    PublisherFilterChanged(this, new PublisherFilterEventArgs(form.PublisherFilter, _showIncludedApplications, _showIgnoredApplications));
                }

                //ILaytonView applicationsTabView = WorkItem.Items[Layton.Cab.Interface.ViewNames.MainTabView] as ILaytonView;
                //((ApplicationsTabView)applicationsTabView).Presenter.ShowPublisher(null);
            }
        }