Exemple #1
0
        void ITeamExplorerPage.Initialize(object sender, PageInitializeEventArgs e)
        {
            Title = "Work Items";

            _serviceProvider = e.ServiceProvider;
            _gitProxy = _serviceProvider.GetService<GitControlProxy>();

            _account = _gitProxy.Account;

            _explorer = new Explorer();
            _explorer.DataContext = _account;
            _explorer.NewQueryLink.RequestNavigate += OnNewItemQueryClicked;
            _explorer.NewItemLink.RequestNavigate += OnNewWorkItemClicked;
            _explorer.CreateQueryLink.RequestNavigate += OnCreateQueryClicked;
            _explorer.AddQueryLink.RequestNavigate += OnAddQueryClicked;
            _explorer.QuerySelected += OnQuerySelected;

            PageContent = _explorer;
        }
Exemple #2
0
        void ITeamExplorerPage.Initialize(object sender, PageInitializeEventArgs e)
        {
            Title = "Work Items";

            _serviceProvider = e.ServiceProvider;
            _extensionProvider = _serviceProvider.GetService<ExtensionProvider>();

            //TODO: Remove this
            _test = new Query() { Title = "one"};

            _explorer = new Explorer();
            _explorer.DataContext = _test;

            _explorer.NewQueryLink.RequestNavigate += OnNewItemQueryClicked;
            _explorer.NewItemLink.RequestNavigate += OnNewWorkItemClicked;
            _explorer.CreateQueryLink.RequestNavigate += OnCreateQueryClicked;
            _explorer.AddQueryLink.RequestNavigate += OnAddQueryClicked;
            _explorer.QuerySelected += OnQuerySelected;

            var items = new List<object>()
            {
                new { Name = "test", Value="2"},
                new { Name = "test", Value="3"},
            };

            PageContent = _explorer;

            _explorer.DataContext = _extensionProvider;
        }