void ReleaseDesignerOutlets() { if (BulletGraph != null) { BulletGraph.Dispose(); BulletGraph = null; } if (LinearGauge != null) { LinearGauge.Dispose(); LinearGauge = null; } if (RadialGauge != null) { RadialGauge.Dispose(); RadialGauge = null; } if (Stepper != null) { Stepper.Dispose(); Stepper = null; } if (ValueLabel != null) { ValueLabel.Dispose(); ValueLabel = null; } }
void ReleaseDesignerOutlets() { if (RadialGauge != null) { RadialGauge.Dispose(); RadialGauge = null; } if (StartAngleLabel != null) { StartAngleLabel.Dispose(); StartAngleLabel = null; } if (StartAngleStepper != null) { StartAngleStepper.Dispose(); StartAngleStepper = null; } if (SweepAngleLabel != null) { SweepAngleLabel.Dispose(); SweepAngleLabel = null; } if (SweepAngleStepper != null) { SweepAngleStepper.Dispose(); SweepAngleStepper = null; } }
void ReleaseDesignerOutlets() { if (Entry != null) { Entry.Dispose(); Entry = null; } if (LinearGauge != null) { LinearGauge.Dispose(); LinearGauge = null; } if (RadialGauge != null) { RadialGauge.Dispose(); RadialGauge = null; } if (Stepper != null) { Stepper.Dispose(); Stepper = null; } }
public Form1() { InitializeComponent(); //TODO Radial Guage RadialGauge radialGauge1 = new RadialGauge(); this.radialGauge1.MinorDifference = 5; this.Controls.Add(radialGauge1); this.radialGauge1.VisualStyle = Syncfusion.Windows.Forms.Gauge.ThemeStyle.Black; this.radialGauge1.MajorDifference = 10F; this.radialGauge1.MaximumValue = 150F; this.radialGauge1.MinimumValue = 0F; this.radialGauge1.MinorDifference = 30F; this.radialGauge1.LabelPlacement = Syncfusion.Windows.Forms.Gauge.LabelPlacement.Outside; this.radialGauge1.TextOrientation = Syncfusion.Windows.Forms.Gauge.TextOrientation.SlideOver; this.radialGauge1.TickPlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.OutSide; this.radialGauge1.MajorTickMarkColor = System.Drawing.Color.LightYellow; this.radialGauge1.MinorTickMarkColor = System.Drawing.Color.Red; this.radialGauge1.GaugeArcColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.GaugeLableColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.InterLinesColor = System.Drawing.Color.Red; this.radialGauge1.MinorTickMarkHeight = 55; this.radialGauge1.MajorTickMarkHeight = 6; this.radialGauge1.MinorInnerLinesHeight = 60; CustomRenderer custom1 = new CustomRenderer(this.linearGauge1); linearGauge1.Renderer = custom1; }
void ReleaseDesignerOutlets() { if (LinearGauge != null) { LinearGauge.Dispose(); LinearGauge = null; } if (RadialGauge != null) { RadialGauge.Dispose(); RadialGauge = null; } if (Stepper != null) { Stepper.Dispose(); Stepper = null; } if (Switch != null) { Switch.Dispose(); Switch = null; } }
public RadialGaugePage SetRadialGaugeValue(double value) { RadialGauge gauge = this.WindowsApp.FindElement(this.radialGauge); gauge.SetValue(value); return(this); }
private void Page_Loaded(object sender, RoutedEventArgs e) { var random = new Random((int)DateTime.Now.Ticks); foreach (var square in SquareOfSquares.Squares) { var gauge = new RadialGauge() { Height = square.ActualHeight, Width = square.ActualWidth }; gauge.Style = Resources["Dome"] as Style; gauge.TrailBrush = new SolidColorBrush(square.RandomColor()); gauge.UnitBrush = gauge.ScaleBrush; if (random.Next(10) < 5) { gauge.TickBrush = new SolidColorBrush(square.RandomColor()); } else { gauge.TickBrush = new SolidColorBrush(Colors.Transparent); } if (random.Next(10) < 5) { gauge.ScaleTickBrush = App.Current.Resources["PageBackgroundBrush"] as SolidColorBrush; } else { gauge.ScaleTickBrush = new SolidColorBrush(Colors.Transparent); } gauge.NeedleWidth = random.Next(8); gauge.TickWidth = gauge.NeedleWidth; gauge.ValueBrush = gauge.TrailBrush; gauge.Maximum = 50; gauge.TickSpacing = 5; gauge.ScaleWidth = random.Next(5, 77); gauge.Unit = "Things"; var side = square.Side(); gauge.Value = side; square.Content = gauge; } }
public void VerifyUIAName() { var gauge = new RadialGauge() { Minimum = 0, Maximum = 100, Value = 20 }; var gaugePeer = FrameworkElementAutomationPeer.CreatePeerForElement(gauge); Assert.IsTrue(gaugePeer.GetName().Contains(gauge.Value.ToString()), "Verify that the UIA name contains the value of the RadialGauge."); Assert.IsTrue(gaugePeer.GetName().Contains("no unit"), "The UIA name should indicate that unit was not specified."); gauge.Unit = "KM/H"; Assert.IsTrue(gaugePeer.GetName().Contains(gauge.Unit), "The UIA name should report the unit of the RadialGauge."); }
private void InitGauge() { RadialGauge gauge = this.UltraGauge1.Gauges[0] as RadialGauge; RadialGaugeScale scale = ((RadialGauge)this.UltraGauge1.Gauges[0]).Scales[0]; scale.Markers[0].Value = 0; RadialGaugeRange range0 = gauge.Scales[0].Ranges[0]; range0.StartValue = 0; range0.EndValue = 60; RadialGaugeRange range1 = gauge.Scales[0].Ranges[1]; range1.StartValue = 60; range1.EndValue = 90; RadialGaugeRange range2 = gauge.Scales[0].Ranges[2]; range2.StartValue = 90; range2.EndValue = 100; }
private void Page_Loaded(object sender, RoutedEventArgs e) { var random = new Random((int)DateTime.Now.Ticks); foreach (var square in SquareOfSquares.Squares) { var gauge = new RadialGauge() { Height = square.ActualHeight, Width = square.ActualWidth }; gauge.Style = Resources["Percentage"] as Style; gauge.TrailBrush = new SolidColorBrush(square.RandomColor()); gauge.ScaleWidth = random.Next(5, 77); gauge.Unit = "%"; gauge.UnitBrush = App.Current.Resources["PageForegroundBrush"] as SolidColorBrush; gauge.ValueBrush = gauge.UnitBrush; var side = square.Side(); gauge.Value = side * 2; square.Content = gauge; } }
public Form1() { InitializeComponent(); UserInitialization(); QProcessorThread = new Thread(new ThreadStart(RXProcessor)); SerialReaderThread = new Thread(new ThreadStart(SerialReader)); SerialReaderThread.Start(); QProcessorThread.Start(); Debug.WriteLine("-------------------------THREAD-RXProcessor-SerialReader Başlatıldı.--------------------------------------------"); Debug.WriteLine("-------------------------TURKMEKATRONİK.--------------------------------------------"); //TODO Radial Guage RadialGauge radialGauge1 = new RadialGauge(); this.radialGauge1.MinorDifference = 5; this.Controls.Add(radialGauge1); this.radialGauge1.VisualStyle = Syncfusion.Windows.Forms.Gauge.ThemeStyle.Black; this.radialGauge1.MajorDifference = 10F; this.radialGauge1.MaximumValue = 150F; this.radialGauge1.MinimumValue = 0F; this.radialGauge1.MinorDifference = 30F; this.radialGauge1.LabelPlacement = Syncfusion.Windows.Forms.Gauge.LabelPlacement.Outside; this.radialGauge1.TextOrientation = Syncfusion.Windows.Forms.Gauge.TextOrientation.SlideOver; this.radialGauge1.TickPlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.OutSide; this.radialGauge1.MajorTickMarkColor = System.Drawing.Color.LightYellow; this.radialGauge1.MinorTickMarkColor = System.Drawing.Color.Red; this.radialGauge1.GaugeArcColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.GaugeLableColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.InterLinesColor = System.Drawing.Color.Red; this.radialGauge1.MinorTickMarkHeight = 55; this.radialGauge1.MajorTickMarkHeight = 6; this.radialGauge1.MinorInnerLinesHeight = 60; this.radialGauge1.BackColor = Color.Transparent; CustomRenderer custom1 = new CustomRenderer(this.linearGauge1); linearGauge1.Renderer = custom1; labelError.Text += "Araç Bağlantısı Bekleniyor-TM"; }
async void SaveImageToDisk() { var gaugeImage = new UIImage(NSData.FromArray(await RadialGauge.GetImage())); gaugeImage.SaveToPhotosAlbum((image, error) => { string message, title; if (error == null) { title = Foundation.NSBundle.MainBundle.LocalizedString("ImageSavedTitle", ""); message = Foundation.NSBundle.MainBundle.LocalizedString("ImageSavedDescription", ""); } else { title = Foundation.NSBundle.MainBundle.LocalizedString("PermissionDenied", ""); message = error.Description; } UIAlertView alert = new UIAlertView(title, message, null, "OK", null); alert.Show(); }); }
private void AddPanel(PanelSettings panelSettings) { VPanel panel = null; switch (panelSettings.panelId) { case PanelType.SIMPLE_GAUGE: panel = new SimpleGauge(mainWindow, (SimpleGaugeSettings)panelSettings); break; case PanelType.SCAN_GAUGE: panel = new ScanGauge(mainWindow, (ScanGaugeSettings)panelSettings); break; case PanelType.ODOMETER: panel = new OdometerPanel(mainWindow, (OdometerSettings)panelSettings); break; case PanelType.TRANSMISSION_GAUGE: panel = new TransmissionIndicator(mainWindow, (TransmissionGaugeSettings)panelSettings); break; case PanelType.MULTIBAR: panel = new MultiBar(mainWindow, (MultiBarSettings)panelSettings); break; case PanelType.HISTOGRAM: break; case PanelType.CLOCK: panel = new Clock(mainWindow, (ClockSettings)panelSettings); break; case PanelType.IMAGE: panel = new ImagePanel(mainWindow, (PictureSettings)panelSettings); break; case PanelType.TEXT: panel = new TextPanel(mainWindow, (TextGaugeSettings)panelSettings); break; case PanelType.TANK_MINDER: panel = new TankMinderPanel(mainWindow, (TankMinderSettings)panelSettings); break; case PanelType.TIRE_GAUGE: panel = new TirePanel(mainWindow, (TireGaugeSettings)panelSettings); break; case PanelType.MESSAGE: break; case PanelType.DIAGNOSTIC_ALARM: panel = new DiagAlarmPanel(mainWindow, (DiagnosticGaugeSettings)panelSettings); break; case PanelType.RADIAL_GAUGE: panel = new RadialGauge(mainWindow, (RadialGaugeSettings)panelSettings); break; case PanelType.DAYNIGHT_GAUGE: panel = new DayNightGauge(mainWindow, (DayNightGaugeSettings)panelSettings); break; default: break; } if (panel != null) //Append panel to the grid for display { PanelList.Add(panel); Children.Add(panel.border); panel.PromoteToFront(); panel.Init(); panel.Refresh(); } }
/// <summary> /// /// </summary> /// <param name="radialGauge"></param> public FuelGaugeCustomRenderer(RadialGauge radialGauge) { m_RadialGauge = radialGauge; }
/// <summary> /// Initializes a new instance of the <see cref=GaugeRadialScaleBuilder" /> class. /// </summary> /// <param name="gauge">The gauge component.</param> public GaugeRadialScaleBuilder(RadialGauge gauge) : base(gauge.Scale) { radialGauge = gauge; }
public GaugeRadialPointerFactory(RadialGauge gaugeContainer) { container = gaugeContainer; }
/// <summary> /// Constructor of the Renderer class /// </summary> /// <param name="radialGauge"></param> public SpeedGaugeCustomRenderer(RadialGauge radialGauge) { m_RadialGauge = radialGauge; }
/// <summary> /// Constructor of the Renderer class /// </summary> /// <param name="radialGauge">Radial Gauge</param> public CustomGaugeRenderer(RadialGauge radialGauge) { m_RadialGauge = radialGauge; m_Center = new Point(m_RadialGauge.Width / 2, m_RadialGauge.Width / 2); }
public void VerifyRadialGaugeValue(double value) { RadialGauge gauge = this.WindowsApp.FindElement(this.radialGauge); Assert.AreEqual(value, gauge.Value); }
/// <summary> /// Initializes a new instance of the <see cref="GaugeRadialScale" /> class. /// </summary> /// <value>The radial gauge.</value> public GaugeRadialScale(RadialGauge gauge) : base() { Labels = new GaugeRadialScaleLabels(); radialGauge = gauge; }
public Form1() { InitializeComponent(); UserInitialization(); //batteryLevels[0] = lblBattLevel1; //batteryLevels[1] = lblBattLevel2; //batteryLevels[2] = lblBattLevel3; //batteryLevels[3] = lblBattLevel4; //batteryLevels[4] = lblBattLevel5; //batteryLevels[5] = lblBattLevel6; //batteryLevels[6] = lblBattLevel7; //batteryLevels[7] = lblBattLevel8; //batteryLevels[8] = lblBattLevel9; //batteryLevels[9] = lblBattLevel10; //batteryLevels[10] = lblBattLevel11; //batteryLevels[11] = lblBattLevel12; //batteryLevels[12] = lblBattLevel13; //batteryLevels[13] = lblBattLevel14; //batteryLevels[14] = lblBattLevel15; //batteryLevels[15] = lblBattLevel16; //batteryLevels[16] = lblBattLevel17; //batteryLevels[17] = lblBattLevel18; //batteryLevels[18] = lblBattLevel19; //batteryLevels[19] = lblBattLevel20; //batteryLevels[20] = lblBattLevel21; //batteryLevels[21] = lblBattLevel22; //batteryLevels[22] = lblBattLevel23; //batteryLevels[23] = lblBattLevel24; //batteryTemps[0] = lblBattTemp1; //batteryTemps[1] = lblBattTemp2; //batteryTemps[2] = lblBattTemp3; //batteryTemps[3] = lblBattTemp4; //batteryTemps[4] = lblBattTemp5; //batteryTemps[5] = lblBattTemp6; //batteryTemps[6] = lblBattTemp7; //batteryTemps[7] = lblBattTemp8; //batteryTemps[8] = lblBattTemp9; //batteryTemps[9] = lblBattTemp10; //batteryTemps[10] = lblBattTemp11; //batteryTemps[11] = lblBattTemp12; //batteryTemps[12] = lblBattTemp13; //batteryTemps[13] = lblBattTemp14; //batteryTemps[14] = lblBattTemp15; //batteryTemps[15] = lblBattTemp16; //batteryTemps[16] = lblBattTemp17; //batteryTemps[17] = lblBattTemp18; //batteryTemps[18] = lblBattTemp19; //batteryTemps[19] = lblBattTemp20; //batteryTemps[20] = lblBattTemp21; //batteryTemps[21] = lblBattTemp22; //batteryTemps[22] = lblBattTemp23; //batteryTemps[23] = lblBattTemp24; //TODO Radial Guage RadialGauge radialGauge1 = new RadialGauge(); this.radialGauge1.MinorDifference = 5; this.Controls.Add(radialGauge1); this.radialGauge1.VisualStyle = Syncfusion.Windows.Forms.Gauge.ThemeStyle.Black; this.radialGauge1.MajorDifference = 10F; this.radialGauge1.MaximumValue = 150F; this.radialGauge1.MinimumValue = 0F; this.radialGauge1.MinorDifference = 30F; this.radialGauge1.LabelPlacement = Syncfusion.Windows.Forms.Gauge.LabelPlacement.Outside; this.radialGauge1.TextOrientation = Syncfusion.Windows.Forms.Gauge.TextOrientation.SlideOver; this.radialGauge1.TickPlacement = Syncfusion.Windows.Forms.Gauge.TickPlacement.OutSide; this.radialGauge1.MajorTickMarkColor = System.Drawing.Color.LightYellow; this.radialGauge1.MinorTickMarkColor = System.Drawing.Color.Red; this.radialGauge1.GaugeArcColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.GaugeLableColor = ColorTranslator.FromHtml("#00a0d1"); this.radialGauge1.InterLinesColor = System.Drawing.Color.Red; this.radialGauge1.MinorTickMarkHeight = 55; this.radialGauge1.MajorTickMarkHeight = 6; this.radialGauge1.MinorInnerLinesHeight = 60; this.radialGauge1.BackColor = Color.Transparent; CustomRenderer custom1 = new CustomRenderer(this.linearGauge1); linearGauge1.Renderer = custom1; }
public IPersistable CreateRIFObject(ObjectType objectType, ref IntermediateFormatReader context) { IPersistable persistable = null; if (objectType == ObjectType.Null) { return(null); } IDOwner parentIDOwner = this.m_parentIDOwner; ReportItem parentReportItem = this.m_parentReportItem; switch (objectType) { case ObjectType.PageSection: persistable = new PageSection(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.Line: persistable = new Line(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.Rectangle: persistable = new Rectangle(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.Image: persistable = new Image(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.TextBox: persistable = new TextBox(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.SubReport: persistable = new SubReport(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.Grouping: persistable = new Grouping(ConstructionPhase.Deserializing); break; case ObjectType.Sorting: persistable = new Sorting(ConstructionPhase.Deserializing); break; case ObjectType.ReportItemCollection: persistable = new ReportItemCollection(); break; case ObjectType.ReportItemIndexer: persistable = (IPersistable)(object)default(ReportItemIndexer); break; case ObjectType.Style: persistable = new Style(ConstructionPhase.Deserializing); break; case ObjectType.AttributeInfo: persistable = new AttributeInfo(); break; case ObjectType.Visibility: persistable = new Visibility(); break; case ObjectType.ExpressionInfo: persistable = new ExpressionInfo(); break; case ObjectType.ExpressionInfoTypeValuePair: persistable = new ExpressionInfoTypeValuePair(); break; case ObjectType.DataAggregateInfo: persistable = new DataAggregateInfo(); break; case ObjectType.RunningValueInfo: persistable = new RunningValueInfo(); break; case ObjectType.Filter: persistable = new Filter(); break; case ObjectType.DataSource: persistable = new DataSource(); break; case ObjectType.DataSet: persistable = new DataSet(); break; case ObjectType.ReportQuery: persistable = new ReportQuery(); break; case ObjectType.Field: persistable = new Field(); break; case ObjectType.ParameterValue: persistable = new ParameterValue(); break; case ObjectType.ReportSnapshot: persistable = new ReportSnapshot(); break; case ObjectType.DocumentMapNode: persistable = new DocumentMapNode(); break; case ObjectType.DocumentMapBeginContainer: persistable = DocumentMapBeginContainer.Instance; break; case ObjectType.DocumentMapEndContainer: persistable = DocumentMapEndContainer.Instance; break; case ObjectType.ReportInstance: persistable = new ReportInstance(); break; case ObjectType.ParameterInfo: persistable = new ParameterInfo(); break; case ObjectType.ValidValue: persistable = new ValidValue(); break; case ObjectType.ParameterDataSource: persistable = new ParameterDataSource(); break; case ObjectType.ParameterDef: persistable = new ParameterDef(); break; case ObjectType.ProcessingMessage: persistable = new ProcessingMessage(); break; case ObjectType.CodeClass: persistable = (IPersistable)(object)default(CodeClass); break; case ObjectType.Action: persistable = new Action(); break; case ObjectType.RenderingPagesRanges: persistable = (IPersistable)(object)default(RenderingPagesRanges); break; case ObjectType.IntermediateFormatVersion: persistable = new IntermediateFormatVersion(); break; case ObjectType.ImageInfo: persistable = new ImageInfo(); break; case ObjectType.ActionItem: persistable = new ActionItem(); break; case ObjectType.DataValue: persistable = new DataValue(); break; case ObjectType.CustomReportItem: persistable = new CustomReportItem(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.SortFilterEventInfoMap: persistable = new SortFilterEventInfoMap(); break; case ObjectType.SortFilterEventInfo: persistable = new SortFilterEventInfo(); break; case ObjectType.EndUserSort: persistable = new EndUserSort(); break; case ObjectType.ScopeLookupTable: persistable = new ScopeLookupTable(); break; case ObjectType.Tablix: persistable = new Tablix(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.TablixHeader: persistable = new TablixHeader(); break; case ObjectType.TablixMember: persistable = new TablixMember(); break; case ObjectType.TablixColumn: persistable = new TablixColumn(); break; case ObjectType.TablixRow: persistable = new TablixRow(); break; case ObjectType.TablixCornerCell: persistable = new TablixCornerCell(); break; case ObjectType.TablixCell: persistable = new TablixCell(); break; case ObjectType.Chart: persistable = new Chart(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.ChartMember: persistable = new ChartMember(); break; case ObjectType.ChartSeries: persistable = new ChartSeries(); break; case ObjectType.ChartDataPoint: persistable = new ChartDataPoint(); break; case ObjectType.ChartDataPointValues: persistable = new ChartDataPointValues(); break; case ObjectType.ChartArea: persistable = new ChartArea(); break; case ObjectType.ChartLegend: persistable = new ChartLegend(); break; case ObjectType.ChartLegendTitle: persistable = new ChartLegendTitle(); break; case ObjectType.ChartAxis: persistable = new ChartAxis(); break; case ObjectType.ThreeDProperties: persistable = new ChartThreeDProperties(); break; case ObjectType.ChartDataLabel: persistable = new ChartDataLabel(); break; case ObjectType.ChartMarker: persistable = new ChartMarker(); break; case ObjectType.ChartTitle: persistable = new ChartTitle(); break; case ObjectType.ChartAxisScaleBreak: persistable = new ChartAxisScaleBreak(); break; case ObjectType.ChartDerivedSeries: persistable = new ChartDerivedSeries(); break; case ObjectType.ChartBorderSkin: persistable = new ChartBorderSkin(); break; case ObjectType.ChartNoDataMessage: persistable = new ChartNoDataMessage(); break; case ObjectType.ChartItemInLegend: persistable = new ChartItemInLegend(); break; case ObjectType.ChartEmptyPoints: persistable = new ChartEmptyPoints(); break; case ObjectType.ChartNoMoveDirections: persistable = new ChartNoMoveDirections(); break; case ObjectType.ChartFormulaParameter: persistable = new ChartFormulaParameter(); break; case ObjectType.ChartLegendColumn: persistable = new ChartLegendColumn(); break; case ObjectType.ChartLegendColumnHeader: persistable = new ChartLegendColumnHeader(); break; case ObjectType.ChartLegendCustomItem: persistable = new ChartLegendCustomItem(); break; case ObjectType.ChartLegendCustomItemCell: persistable = new ChartLegendCustomItemCell(); break; case ObjectType.ChartAlignType: persistable = new ChartAlignType(); break; case ObjectType.ChartElementPosition: persistable = new ChartElementPosition(); break; case ObjectType.ChartSmartLabel: persistable = new ChartSmartLabel(); break; case ObjectType.ChartStripLine: persistable = new ChartStripLine(); break; case ObjectType.ChartAxisTitle: persistable = new ChartAxisTitle(); break; case ObjectType.ChartCustomPaletteColor: persistable = new ChartCustomPaletteColor(); break; case ObjectType.GridLines: persistable = new ChartGridLines(); break; case ObjectType.ChartTickMarks: persistable = new ChartTickMarks(); break; case ObjectType.DataMember: persistable = new DataMember(); break; case ObjectType.CustomDataRow: persistable = new CustomDataRow(); break; case ObjectType.DataCell: persistable = new DataCell(); break; case ObjectType.Variable: persistable = new Variable(); break; case ObjectType.Page: persistable = new Page(); break; case ObjectType.Paragraph: persistable = new Paragraph(); break; case ObjectType.TextRun: persistable = new TextRun(); break; case ObjectType.Report: persistable = new Report(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.GaugePanel: persistable = new GaugePanel(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.GaugeMember: persistable = new GaugeMember(); break; case ObjectType.GaugeRow: persistable = new GaugeRow(); break; case ObjectType.GaugeCell: persistable = new GaugeCell(); break; case ObjectType.BackFrame: persistable = new BackFrame(); break; case ObjectType.CapImage: persistable = new CapImage(); break; case ObjectType.FrameBackground: persistable = new FrameBackground(); break; case ObjectType.FrameImage: persistable = new FrameImage(); break; case ObjectType.CustomLabel: persistable = new CustomLabel(); break; case ObjectType.GaugeImage: persistable = new GaugeImage(); break; case ObjectType.GaugeInputValue: persistable = new GaugeInputValue(); break; case ObjectType.GaugeLabel: persistable = new GaugeLabel(); break; case ObjectType.GaugePanelItem: persistable = new GaugePanelItem(); break; case ObjectType.GaugeTickMarks: persistable = new GaugeTickMarks(); break; case ObjectType.LinearGauge: persistable = new LinearGauge(); break; case ObjectType.LinearPointer: persistable = new LinearPointer(); break; case ObjectType.LinearScale: persistable = new LinearScale(); break; case ObjectType.NumericIndicator: persistable = new NumericIndicator(); break; case ObjectType.PinLabel: persistable = new PinLabel(); break; case ObjectType.PointerCap: persistable = new PointerCap(); break; case ObjectType.PointerImage: persistable = new PointerImage(); break; case ObjectType.RadialGauge: persistable = new RadialGauge(); break; case ObjectType.RadialPointer: persistable = new RadialPointer(); break; case ObjectType.RadialScale: persistable = new RadialScale(); break; case ObjectType.ScaleLabels: persistable = new ScaleLabels(); break; case ObjectType.ScalePin: persistable = new ScalePin(); break; case ObjectType.ScaleRange: persistable = new ScaleRange(); break; case ObjectType.IndicatorImage: persistable = new IndicatorImage(); break; case ObjectType.StateIndicator: persistable = new StateIndicator(); break; case ObjectType.Thermometer: persistable = new Thermometer(); break; case ObjectType.TickMarkStyle: persistable = new TickMarkStyle(); break; case ObjectType.TopImage: persistable = new TopImage(); break; case ObjectType.LookupInfo: persistable = new LookupInfo(); break; case ObjectType.LookupDestinationInfo: persistable = new LookupDestinationInfo(); break; case ObjectType.ReportSection: persistable = new ReportSection(); break; case ObjectType.MapFieldDefinition: persistable = new MapFieldDefinition(); break; case ObjectType.MapFieldName: persistable = new MapFieldName(); break; case ObjectType.MapLineLayer: persistable = new MapLineLayer(); break; case ObjectType.MapShapefile: persistable = new MapShapefile(); break; case ObjectType.MapPolygonLayer: persistable = new MapPolygonLayer(); break; case ObjectType.MapSpatialDataRegion: persistable = new MapSpatialDataRegion(); break; case ObjectType.MapSpatialDataSet: persistable = new MapSpatialDataSet(); break; case ObjectType.MapPointLayer: persistable = new MapPointLayer(); break; case ObjectType.MapTile: persistable = new MapTile(); break; case ObjectType.MapTileLayer: persistable = new MapTileLayer(); break; case ObjectType.MapField: persistable = new MapField(); break; case ObjectType.MapLine: persistable = new MapLine(); break; case ObjectType.MapPolygon: persistable = new MapPolygon(); break; case ObjectType.MapPoint: persistable = new MapPoint(); break; case ObjectType.MapLineTemplate: persistable = new MapLineTemplate(); break; case ObjectType.MapPolygonTemplate: persistable = new MapPolygonTemplate(); break; case ObjectType.MapMarkerTemplate: persistable = new MapMarkerTemplate(); break; case ObjectType.Map: persistable = new Map(this.m_parentReportItem); this.m_parentReportItem = (ReportItem)persistable; break; case ObjectType.MapBorderSkin: persistable = new MapBorderSkin(); break; case ObjectType.MapDataRegion: persistable = new MapDataRegion(this.m_parentReportItem); break; case ObjectType.MapMember: persistable = new MapMember(); break; case ObjectType.MapRow: persistable = new MapRow(); break; case ObjectType.MapCell: persistable = new MapCell(); break; case ObjectType.MapLocation: persistable = new MapLocation(); break; case ObjectType.MapSize: persistable = new MapSize(); break; case ObjectType.MapGridLines: persistable = new MapGridLines(); break; case ObjectType.MapBindingFieldPair: persistable = new MapBindingFieldPair(); break; case ObjectType.MapCustomView: persistable = new MapCustomView(); break; case ObjectType.MapDataBoundView: persistable = new MapDataBoundView(); break; case ObjectType.MapElementView: persistable = new MapElementView(); break; case ObjectType.MapViewport: persistable = new MapViewport(); break; case ObjectType.MapLimits: persistable = new MapLimits(); break; case ObjectType.MapColorScale: persistable = new MapColorScale(); break; case ObjectType.MapColorScaleTitle: persistable = new MapColorScaleTitle(); break; case ObjectType.MapDistanceScale: persistable = new MapDistanceScale(); break; case ObjectType.MapTitle: persistable = new MapTitle(); break; case ObjectType.MapLegend: persistable = new MapLegend(); break; case ObjectType.MapLegendTitle: persistable = new MapLegendTitle(); break; case ObjectType.MapBucket: persistable = new MapBucket(); break; case ObjectType.MapColorPaletteRule: persistable = new MapColorPaletteRule(); break; case ObjectType.MapColorRangeRule: persistable = new MapColorRangeRule(); break; case ObjectType.MapCustomColorRule: persistable = new MapCustomColorRule(); break; case ObjectType.MapCustomColor: persistable = new MapCustomColor(); break; case ObjectType.MapLineRules: persistable = new MapLineRules(); break; case ObjectType.MapPolygonRules: persistable = new MapPolygonRules(); break; case ObjectType.MapSizeRule: persistable = new MapSizeRule(); break; case ObjectType.MapMarkerImage: persistable = new MapMarkerImage(); break; case ObjectType.MapMarker: persistable = new MapMarker(); break; case ObjectType.MapMarkerRule: persistable = new MapMarkerRule(); break; case ObjectType.MapPointRules: persistable = new MapPointRules(); break; case ObjectType.PageBreak: persistable = new PageBreak(); break; case ObjectType.DataScopeInfo: persistable = new DataScopeInfo(); break; case ObjectType.LinearJoinInfo: persistable = new LinearJoinInfo(); break; case ObjectType.IntersectJoinInfo: persistable = new IntersectJoinInfo(); break; case ObjectType.BucketedDataAggregateInfos: persistable = new BucketedDataAggregateInfos(); break; case ObjectType.DataAggregateInfoBucket: persistable = new DataAggregateInfoBucket(); break; case ObjectType.NumericIndicatorRange: persistable = new NumericIndicatorRange(); break; case ObjectType.IndicatorState: persistable = new IndicatorState(); break; case ObjectType.SharedDataSetQuery: persistable = new SharedDataSetQuery(); break; case ObjectType.DataSetCore: persistable = new DataSetCore(); break; case ObjectType.DataSetParameterValue: persistable = new DataSetParameterValue(); break; case ObjectType.RIFVariantContainer: persistable = new RIFVariantContainer(); break; case ObjectType.IdcRelationship: persistable = new IdcRelationship(); break; case ObjectType.DefaultRelationship: persistable = new DefaultRelationship(); break; case ObjectType.JoinCondition: persistable = new Relationship.JoinCondition(); break; case ObjectType.BandLayoutOptions: persistable = new BandLayoutOptions(); break; case ObjectType.LabelData: persistable = new LabelData(); break; case ObjectType.Slider: persistable = new Slider(); break; case ObjectType.Coverflow: persistable = new Coverflow(); break; case ObjectType.PlayAxis: persistable = new PlayAxis(); break; case ObjectType.BandNavigationCell: persistable = new BandNavigationCell(); break; case ObjectType.Tabstrip: persistable = new Tabstrip(); break; case ObjectType.NavigationItem: persistable = new NavigationItem(); break; case ObjectType.ScopedFieldInfo: persistable = new ScopedFieldInfo(); break; default: Global.Tracer.Assert(false, "Unsupported object type: " + objectType.ToString()); break; } IDOwner iDOwner = persistable as IDOwner; if (iDOwner != null) { iDOwner.ParentInstancePath = this.m_parentIDOwner; this.m_parentIDOwner = iDOwner; } persistable.Deserialize(context); this.m_parentIDOwner = parentIDOwner; this.m_parentReportItem = parentReportItem; return(persistable); }
public TorqueGaugeCustomRenderer(RadialGauge radialGauge) { m_RadialGauge = radialGauge; }
public TemperatureCustomRenderer(RadialGauge radialGauge) { m_RadialGauge = radialGauge; }
public CustomRenderer(RadialGauge radialGauge1) { this.m_RadialGauge = radialGauge1; m_Center = new Point(this.RadialGauge.Width / 2, this.RadialGauge.Height / 2); }