Ejemplo n.º 1
0
        public void Initialize()
        {
            EventsViewer.Events              = Events;
            EventsViewer.ViewportSeconds     = ViewportSeconds;
            EventsViewer.ViewportVolume      = ViewportVolume;
            EventsViewer.HorizontalRuler     = HorizontalRuler;
            EventsViewer.VerticalRuler       = VerticalRuler;
            EventsViewer.SelectionRuler      = SelectionRuler;
            EventsViewer.ApprovalRuler       = ApprovalRuler;
            EventsViewer.ClassificationRuler = ClassificationRuler;
            EventsViewer.FixturesRuler       = FixturesRuler;

            EventsViewer.Initialize();

            TimeFramePanel.Events = Events;
            TimeFramePanel.Initialize();

            SelectionRuler.Events = Events;
            SelectionRuler.Initialize();

            ApprovalRuler.Events = Events;
            ApprovalRuler.Initialize();

            ClassificationRuler.Events = Events;
            ClassificationRuler.Initialize();

            FixturesRuler.Events          = Events;
            FixturesRuler.ViewportSeconds = ViewportSeconds;
            FixturesRuler.Initialize();

            BindTimeFrameView();
            ScrollViewersSetBindings();

            Events.PropertyChanged += new PropertyChangedEventHandler(Events_PropertyChanged);
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TimeFramePanel = ((TraceWizard.TwApp.TimeFramePanel)(target));
                return;

            case 2:
                this.dockFixturesRuler = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.FixturesRuler = ((TraceWizard.TwApp.FixturesRuler)(target));
                return;

            case 4:
                this.dockApprovalRuler = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 5:
                this.ApprovalRuler = ((TraceWizard.TwApp.ApprovalRuler)(target));
                return;

            case 6:
                this.dockClassificationRuler = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 7:
                this.ClassificationRuler = ((TraceWizard.TwApp.ClassificationRuler)(target));
                return;

            case 8:
                this.dockSelectionRuler = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 9:
                this.SelectionRuler = ((TraceWizard.TwApp.SelectionRuler)(target));
                return;

            case 10:
                this.HorizontalRuler = ((TraceWizard.TwApp.HorizontalRuler)(target));
                return;

            case 11:
                this.VerticalRuler = ((TraceWizard.TwApp.VerticalRuler)(target));
                return;

            case 12:
                this.EventsViewer = ((TraceWizard.TwApp.EventsViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }