예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FixtureLabel = ((TraceWizard.TwApp.ShortFixtureLabel)(target));
                return;

            case 2:
                this.FixtureSummaryPanel = ((TraceWizard.TwApp.FixtureSummaryPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void UpdateSelectedVolume(FixtureSummaries fixtureSummariesNew)
        {
            FixtureSummaryPanel fixtureSummaryPanel = FixturePanelTotal.FixtureSummaryPanel;

            if (fixtureSummariesNew.SelectedVolume == 0)
            {
                fixtureSummaryPanel.textBlockSelected.Text = string.Empty;
            }
            else
            {
                fixtureSummaryPanel.textBlockSelected.Text = fixtureSummariesNew.SelectedVolume.ToString("0.0");
            }
            fixtureSummaryPanel.textBlockSelected.ToolTip = "Total Volume of Selected Events";
        }
예제 #3
0
        void UpdateFixtureSummary(FixtureSummaryPanel fixtureSummaryPanel, FixtureSummaries fixtureSummariesOld, FixtureSummaries fixtureSummariesNew)
        {
            FixtureClass fixtureClass = fixtureSummaryPanel.FixtureClass;

            UpdateFixtureSummaryInstanceCount(fixtureSummaryPanel.textBlockInstancesCount, fixtureSummariesNew, fixtureClass);

            UpdateFixtureSummaryInstanceDelta(fixtureSummaryPanel.textBlockInstancesDelta, fixtureSummariesNew, fixtureSummariesOld, fixtureClass);

            UpdateFixtureSummaryVolumeCount(fixtureSummaryPanel.textBlockVolume, fixtureSummariesNew, fixtureClass);

            UpdateFixtureSummaryVolumePercent(fixtureSummaryPanel.textBlockVolumePercent, fixtureSummariesNew, fixtureClass);

            UpdateFixtureSummarySelectedCountLabels(fixtureSummaryPanel.textBlockSelected, fixtureSummariesNew, fixtureClass);
        }
예제 #4
0
        public void Initialize()
        {
            if (FixtureClass != null)
            {
                Tag = FixtureClass;
                FixtureLabel.CanDrag = true;
                //                Button.Tag = FixtureClass;
            }
            else
            {
                FixtureLabel.Border.Visibility = Visibility.Hidden;
            }

            FixtureLabel.FixtureClass = FixtureClass;
            FixtureLabel.Label        = Label;

            FixtureSummaryPanel.FixtureClass = FixtureClass;
            if (Analysis != null && FixtureClass != null)
            {
                FixtureSummaryPanel.FixtureSummary = Analysis.FixtureSummaries[FixtureClass];
                FixtureSummaryPanel.Initialize();
            }
        }
예제 #5
0
 void UpdateSelectLabels(FixtureSummaryPanel fixtureSummaryPanel, FixtureSummaries fixtureSummariesNew)
 {
     UpdateFixtureSummarySelectedCountLabels(fixtureSummaryPanel.textBlockSelected, fixtureSummariesNew, fixtureSummaryPanel.FixtureClass);
 }