Exemplo n.º 1
0
        protected override void Initialize()
        {
            base.Initialize();

            var context = ((ITeamFoundationContextManager)GetService(typeof(ITeamFoundationContextManager))).CurrentContext;

            _model       = new TimelineModel(new TimelineService(context, (message) => OutputWindowHelper.OutputString(this, message)));
            base.Content = new TimelineWrapper(_model,
                                               (message) => OutputWindowHelper.OutputString(this, message),
                                               (id) => {
                var dte = (EnvDTE.DTE)GetService(typeof(EnvDTE.DTE));
                SourceControlHelper.ShowChangeset(dte, id);
            });
        }
Exemplo n.º 2
0
        public TimelineWrapper(TimelineModel model,
                               Action <string> logger,
                               Action <int> showChangeset)
        {
            _timeline = new ControlTimelinePane(model);
            var timeLine = YL.Timeline.Controls.Behind.Helpers.FindChildrens <ControlTimeLine>(_timeline).FirstOrDefault();

            if (timeLine != null)
            {
                var controller = ControlTimeLine.GetController(timeLine);
                controller.Logger        = logger;
                controller.ShowChangeset = showChangeset;
            }
            Content = _timeline;
        }
Exemplo n.º 3
0
 public ControlTimelinePane(TimelineModel model)
 {
     InitializeComponent();
     DataContext = model;
 }