Ejemplo n.º 1
0
        public SelectStory(SharpCloudApi client, bool allowMultiSelect = true, string username = "")
        {
            InitializeComponent();

            _viewModel = DataContext as SelectedStoryViewModel;
            _client = client;

            storiesCvs = this.FindResource("storiesCvs") as CollectionViewSource;
            storiesCvs.Source = _viewModel.AllStories;
            teamsCvs = this.FindResource("teamsCvs") as CollectionViewSource;
            teamsCvs.Source = _viewModel.AllTeams;

            if (_client == null)
                loginGrid.Visibility = Visibility.Visible;
            else
            {
                loginGrid.Visibility = Visibility.Collapsed;
            }

            Loaded += new RoutedEventHandler(SelectRoadmap_Loaded);

            SelectedIDs = new List<string>();
            SelectedStoryLites = new List<StoryLite>();
            _allowMultiSelect = allowMultiSelect;
            _userName = username.ToLower();
        }
Ejemplo n.º 2
0
        public SelectTeam(SharpCloudApi client)
        {
            InitializeComponent();

            _viewModel = DataContext as SelectedStoryViewModel;
            _client = client;

            teamsCvs = this.FindResource("teamsCvs") as CollectionViewSource;
            teamsCvs.Source = _viewModel.AllTeams;

            Loaded += new RoutedEventHandler(SelectRoadmap_Loaded);

            SelectedTeam = null;
        }