public StreamCreateDialogViewModel(IEventAggregator events, StreamsRepository streamsRepo, ConnectorBindings bindings)
        {
            DisplayName = "Create Stream";
            _events     = events;
            Bindings    = bindings;
            FilterTabs  = new BindableCollection <FilterTab>(Bindings.GetSelectionFilters().Select(f => new FilterTab(f)));

            SelectionCount = Bindings.GetSelectedObjects().Count;
            _events.Subscribe(this);
        }
        public ShareStreamDialogViewModel(
            IEventAggregator events,
            StreamsRepository streamsRepo,
            ConnectorBindings bindings)
        {
            DisplayName  = "Share Stream";
            _events      = events;
            _streamsRepo = streamsRepo;
            _bindings    = bindings;

            Roles        = _streamsRepo.GetRoles();
            SelectedRole = Roles[0];
        }
        public StreamUpdateObjectsDialogViewModel(
            IEventAggregator events,
            StreamsRepository streamsRepo,
            ConnectorBindings bindings)
        {
            DisplayName  = "Update Stream";
            _events      = events;
            _streamsRepo = streamsRepo;
            Bindings     = bindings;
            Roles        = new BindableCollection <StreamRole>(_streamsRepo.GetRoles());
            FilterTabs   = new BindableCollection <FilterTab>(Bindings.GetSelectionFilters().Select(f => new FilterTab(f)));

            _events.Subscribe(this);
        }