public void AerodynamicsButtonPressed() { FeatureImage.SetActive(false); FeaturePanel.SetActive(false); AerodynamicsImage.SetActive(true); AerodynamicsPanel.SetActive(true); SafetyImage.SetActive(false); safetyPanel.SetActive(false); ConnectivityImage.SetActive(false); ConnectivityPanel.SetActive(false); TechnologyImage.SetActive(false); TechnologyPanel.SetActive(false); }
private static void XMLOnShow(PopupMessageBox parentFrame, XMLFrame childFrame, GUIHost host, object data) { var featuresDialogData = data as FeaturesDialog.ProFeaturesDialogData; ((TextWidget)childFrame.FindChildElement("FeaturePanel::Title")).Text = string.Format("{0} Features", featuresDialogData.printer.MyPrinterProfile.ProfileName); ((TextWidget)childFrame.FindChildElement("FeaturePanel::Desc")).Text = string.Format("Here are the {0} features currently available for your printer.", featuresDialogData.printer.MyPrinterProfile.ProfileName); FeaturesDialog.featurePanel = new FeaturePanel(1004, host, featuresDialogData.spoolerConnection, featuresDialogData.printer) { Visible = true, Enabled = true }; childFrame.FindChildElement(1003).AddChildElement(FeaturesDialog.featurePanel); }