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; }
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"; }
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); }
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(); } }
void UpdateSelectLabels(FixtureSummaryPanel fixtureSummaryPanel, FixtureSummaries fixtureSummariesNew) { UpdateFixtureSummarySelectedCountLabels(fixtureSummaryPanel.textBlockSelected, fixtureSummariesNew, fixtureSummaryPanel.FixtureClass); }