public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; gc.Size = Size; gc.Location = Location; var digitalGauge = gc.AddDigitalGauge(); // The text to be displayed. digitalGauge.Text = "Gauge Control"; // The number of digits. digitalGauge.DigitCount = 14; // Use 14 segment display mode. digitalGauge.DisplayMode = DigitalGaugeDisplayMode.FourteenSegment; // Add a background layer and set its painting style. DigitalBackgroundLayerComponent background2 = digitalGauge.AddBackgroundLayer(); background2.ShapeType = DigitalBackgroundShapeSetType.Style2; // Set the color of digits. digitalGauge.AppearanceOn.ContentBrush = new SolidBrushObject(Color.Red); // Add the gauge control to the form. Control = gc; return(gc); }
public override void SetupGaugeCore(GaugeControl gaugeContainer) { LinearGauge linearGauge = gaugeContainer.AddLinearGauge(); // Add the default elements (a scale, background layer and level bar). linearGauge.AddDefaultElements(); // Change the background layer's paint style. LinearScaleBackgroundLayer backgroundLinear = linearGauge.BackgroundLayers[0]; backgroundLinear.ShapeType = BackgroundLayerShapeType.Linear_Style3; // Customize the scale's settings. LinearScaleComponent scaleLinear = linearGauge.Scales[0]; BindableComponent = scaleLinear; scaleLinear.MinValue = 0; scaleLinear.MaxValue = 100; scaleLinear.Value = 0; scaleLinear.MajorTickCount = 6; scaleLinear.MajorTickmark.FormatString = "{0:F0}"; scaleLinear.MajorTickmark.ShapeType = TickmarkShapeType.Linear_Style6_3; scaleLinear.MinorTickCount = 3; scaleLinear.MinorTickmark.ShapeType = TickmarkShapeType.Linear_Style5_2; // Shift tick marks to the right. scaleLinear.MajorTickmark.ShapeOffset = 5f; scaleLinear.MinorTickmark.ShapeOffset = 5f; // Change the levelBar's paint style. LinearScaleLevelComponent levelBar = linearGauge.Levels[0]; levelBar.ShapeType = LevelShapeSetType.Style3; // Shift the background layer up and to the left. backgroundLinear.ScaleStartPos = new PointF2D(backgroundLinear.ScaleStartPos.X - 0.005f, backgroundLinear.ScaleStartPos.Y - 0.015f); backgroundLinear.ScaleEndPos = new PointF2D(backgroundLinear.ScaleEndPos.X - 0.005f, backgroundLinear.ScaleEndPos.Y); }
public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; var pathbaseControlXml = string.Format( @"panel de control/basecontrol/{0}", XmlDocument.SelectSingleNode("control").Attributes["baseControl"].Value); gc.RestoreLayoutFromXml(Path.Combine(Application.StartupPath, pathbaseControlXml)); gc.Location = Location; gc.Size = Size; gc.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; gc.Text = DatasourceDetail; var stateIndicador = gc.Gauges[0] as StateIndicatorGauge; foreach (LabelComponent label in stateIndicador.Labels) { if (label.Name.Equals("LabelTitulo")) label.Text = "<b>" + Title + "</b>"; if (label.Name.Equals("LabelNumero")) _labelNumero = label; } // Add the gauge control to the form. Control = gc; return gc; }
public override void SetupGaugeCore(GaugeControl gaugeContainer) { CircularGauge circularGauge = gaugeContainer.AddCircularGauge(); // Add the default elements (a scale, background layer, needle and spindle cap). circularGauge.AddDefaultElements(); // Change the background layer's paint style. ArcScaleBackgroundLayer backgroundCircular = circularGauge.BackgroundLayers[0]; backgroundCircular.ShapeType = BackgroundLayerShapeType.CircularFull_Style3; // Customize the scale's settings. ArcScaleComponent scaleCircular = circularGauge.Scales[0]; BindableComponent = scaleCircular; scaleCircular.MinValue = 0; scaleCircular.MaxValue = 100; scaleCircular.Value = 0; scaleCircular.MajorTickCount = 6; scaleCircular.MajorTickmark.FormatString = "{0:F0}"; scaleCircular.MajorTickmark.ShapeType = TickmarkShapeType.Circular_Style2_2; scaleCircular.MajorTickmark.ShapeOffset = -9; scaleCircular.MajorTickmark.AllowTickOverlap = true; scaleCircular.MinorTickCount = 3; scaleCircular.MinorTickmark.ShapeType = TickmarkShapeType.Circular_Style2_1; // Change the needle's paint style. ArcScaleNeedleComponent needle = circularGauge.Needles[0]; needle.ShapeType = NeedleShapeType.CircularFull_Style3; }
public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; var pathbaseControlXml = string.Format( @"panel de control/basecontrol/{0}", XmlDocument.SelectSingleNode("control").Attributes["baseControl"].Value); gc.RestoreLayoutFromXml(Path.Combine(Application.StartupPath, pathbaseControlXml)); gc.Location = Location; gc.Size = Size; gc.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; gc.Text = DatasourceDetail; var stateIndicador = gc.Gauges[0] as StateIndicatorGauge; foreach (LabelComponent label in stateIndicador.Labels) { if (label.Name.Equals("LabelTitulo")) { label.Text = "<b>" + Title + "</b>"; } if (label.Name.Equals("LabelNumero")) { _labelNumero = label; } } // Add the gauge control to the form. Control = gc; return(gc); }
protected override object CreateControlCore() { GaugeControl gaugeControl = new GaugeControl(); gaugeControl.BackColor = Color.Transparent; SetupGaugeCore(gaugeControl); return(gaugeControl); }
/// <summary> /// Initializes our designer /// </summary> /// <param name="component"></param> public override void Initialize(IComponent component) { base.Initialize(component); if (component.Site.DesignMode == true) _GaugeControl = component as GaugeControl; #if !TRIAL IDesignerHost dh = GetService(typeof(IDesignerHost)) as IDesignerHost; if (dh != null) dh.LoadComplete += DhLoadComplete; #endif }
private void CreateCircularGauge() { GaugeControl gaugeControl = new GaugeControl(); CircularGauge gauge = (CircularGauge)gaugeControl.AddGauge(GaugeType.Circular); gauge.AddDefaultElements(); ArcScaleComponent scale = gauge.Scales[0]; scale.BeginUpdate(); scale.Ranges.AddRange(CreateRanges(scale.MaxValue - scale.MinValue, scale.MinValue)); scale.EndUpdate(); gaugeControl.Dock = DockStyle.Fill; Controls.Add(gaugeControl); }
void DoAnimation(GaugeControl gauge) { foreach (IGauge gb in gauge.Gauges) { ICircularGauge cGauge = gb as ICircularGauge; if (cGauge != null) { foreach (IScale scale in cGauge.Scales) { scale.Value = frmConnection.Instance.RPM; textEdit1.Text = frmConnection.Instance.RPM.ToString(); } } } }
void CreateGaugeFromCode(Theme theme) { gaugeControl = new GaugeControl(); gaugeControl.Size = new System.Drawing.Size(200, 200); circularGauge = gaugeControl.AddCircularGauge(); circularGauge.AddDefaultElements(); var style = StyleLoader.Load("Circular", theme.Name, "Full"); if (style != null) { style.Apply(circularGauge); } }
public override void SetupGaugeCore(GaugeControl gaugeContainer) { DigitalGauge digitalGauge = gaugeContainer.AddDigitalGauge(); // The number of digits. digitalGauge.DigitCount = 14; // Use 14 segment display mode. digitalGauge.DisplayMode = DigitalGaugeDisplayMode.FourteenSegment; // Add a background layer and set its painting style. DigitalBackgroundLayerComponent backgroundDigital = digitalGauge.AddBackgroundLayer(); BindableComponent = digitalGauge; backgroundDigital.ShapeType = DigitalBackgroundShapeSetType.Style2; // Set the color of digits. digitalGauge.AppearanceOn.ContentBrush = new SolidBrushObject(Color.Red); }
public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; var pathbaseControlXml = string.Format( @"panel de control/basecontrol/{0}", XmlDocument.SelectSingleNode("control").Attributes["baseControl"].Value); gc.RestoreLayoutFromXml(Path.Combine(Application.StartupPath, pathbaseControlXml)); gc.Location = Location; gc.Size = Size; // Add the gauge control to the form. Control = gc; gc.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; gc.Text = DatasourceDetail; return gc; }
public override void SetupGaugeCore(GaugeControl gaugeContainer) { StateIndicatorGauge siGauge = gaugeContainer.AddStateIndicatorGauge(); StateIndicatorComponent stateIndicator = siGauge.AddIndicator(); BindableComponent = stateIndicator; StateIndicatorShapeType[] shapes = new StateIndicatorShapeType[] { StateIndicatorShapeType.TrafficLight2, StateIndicatorShapeType.TrafficLight3, StateIndicatorShapeType.TrafficLight4, }; stateIndicator.States.Clear(); foreach (StateIndicatorShapeType shape in shapes) { IndicatorState state = new IndicatorState(); state.ShapeType = shape; stateIndicator.States.Add(state); } stateIndicator.Size = new SizeF(100, 200); }
public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; var pathbaseControlXml = string.Format( @"panel de control/basecontrol/{0}", XmlDocument.SelectSingleNode("control").Attributes["baseControl"].Value); gc.RestoreLayoutFromXml(Path.Combine(Application.StartupPath, pathbaseControlXml)); gc.Location = Location; gc.Size = Size; // Add the gauge control to the form. Control = gc; gc.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; gc.Text = DatasourceDetail; return(gc); }
public override Control Generete() { GaugeControl gc = new GaugeControl(); gc.BackColor = Color.Transparent; gc.Size = Size; gc.Location = Location; var digitalGauge = gc.AddDigitalGauge(); // The text to be displayed. digitalGauge.Text = "Gauge Control"; // The number of digits. digitalGauge.DigitCount = 14; // Use 14 segment display mode. digitalGauge.DisplayMode = DigitalGaugeDisplayMode.FourteenSegment; // Add a background layer and set its painting style. DigitalBackgroundLayerComponent background2 = digitalGauge.AddBackgroundLayer(); background2.ShapeType = DigitalBackgroundShapeSetType.Style2; // Set the color of digits. digitalGauge.AppearanceOn.ContentBrush = new SolidBrushObject(Color.Red); // Add the gauge control to the form. Control = gc; return gc; }
void DoAnimation(GaugeControl gauge) { foreach (IGauge gb in gauge.Gauges) { ICircularGauge cGauge = gb as ICircularGauge; if (cGauge != null) { foreach (IScale scale in cGauge.Scales) { scale.Value = AnimateScaleValue(scale); } } ILinearGauge lGauge = gb as ILinearGauge; if (lGauge != null) { foreach (IScale scale in lGauge.Scales) { scale.Value = AnimateScaleValue(scale); } } } }
private GaugePointer GetLinearPointer(GaugeControl gauge, string sname, string pname) { GaugeScale scale = gauge.LinearScales[sname]; return (scale != null ? scale.Pointers[pname] : null); }
void GaugeDisplay(GaugeControl gc, double value) { ((NumericIndicator)gc.GaugeItems[0]).Text = value.ToString(); }
public abstract void SetupGaugeCore(GaugeControl gaugeContainer);
/// <summary> /// GaugeControlActionList /// </summary> /// <param name="gaugeControl">Associated GaugeControl</param> public GaugeControlActionList(GaugeControl gaugeControl) : base(gaugeControl) { _GaugeControl = gaugeControl; }
private void InitializeComponent() { this.pictureBox2 = new PictureBox(); this.pictureBox1 = new PictureBox(); this.labelControl1 = new LabelControl(); this.labelControl2 = new LabelControl(); this.labelControl3 = new LabelControl(); this.labelControl4 = new LabelControl(); this.labelControl5 = new LabelControl(); this.lbl_Name = new LabelControl(); this.lbl_Number = new LabelControl(); this.lbl_sex = new LabelControl(); this.lbl_age = new LabelControl(); this.lbl_persontype = new LabelControl(); this.lbl_channl = new LabelControl(); this.labelControl7 = new LabelControl(); this.panelControl1 = new PanelControl(); this.lbl_time = new Label(); this.gaugeControl1 = new GaugeControl(); this.circularGauge1 = new CircularGauge(); this.labelComponent1 = new LabelComponent(); this.labelComponent2 = new LabelComponent(); this.arcScaleRangeBarComponent1 = new ArcScaleRangeBarComponent(); this.arcScaleComponent1 = new ArcScaleComponent(); ((ISupportInitialize)this.pictureBox2).BeginInit(); ((ISupportInitialize)this.pictureBox1).BeginInit(); ((ISupportInitialize)this.panelControl1).BeginInit(); this.panelControl1.SuspendLayout(); this.circularGauge1.BeginInit(); this.labelComponent1.BeginInit(); this.labelComponent2.BeginInit(); this.arcScaleRangeBarComponent1.BeginInit(); this.arcScaleComponent1.BeginInit(); base.SuspendLayout(); this.pictureBox2.BackColor = Color.Black; this.pictureBox2.BorderStyle = BorderStyle.FixedSingle; this.pictureBox2.Location = new Point(217, 2); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new Size(211, 226); this.pictureBox2.SizeMode = PictureBoxSizeMode.StretchImage; this.pictureBox2.TabIndex = 0; this.pictureBox2.TabStop = false; this.pictureBox1.BackColor = Color.Black; this.pictureBox1.BorderStyle = BorderStyle.FixedSingle; this.pictureBox1.Location = new Point(3, 2); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new Size(211, 226); this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; this.labelControl1.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl1.Appearance.ForeColor = Color.Silver; this.labelControl1.Location = new Point(217, 16); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new Size(50, 19); this.labelControl1.TabIndex = 3; this.labelControl1.Text = "姓 名:"; this.labelControl2.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl2.Appearance.ForeColor = Color.Silver; this.labelControl2.Location = new Point(217, 121); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new Size(50, 19); this.labelControl2.TabIndex = 3; this.labelControl2.Text = "编 号:"; this.labelControl2.Click += new EventHandler(this.labelControl2_Click); this.labelControl3.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl3.Appearance.ForeColor = Color.Silver; this.labelControl3.Location = new Point(217, 51); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new Size(50, 19); this.labelControl3.TabIndex = 3; this.labelControl3.Text = "性 别:"; this.labelControl4.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl4.Appearance.ForeColor = Color.Silver; this.labelControl4.Location = new Point(217, 156); this.labelControl4.Name = "labelControl4"; this.labelControl4.Size = new Size(50, 19); this.labelControl4.TabIndex = 3; this.labelControl4.Text = "年 龄:"; this.labelControl5.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl5.Appearance.ForeColor = Color.Silver; this.labelControl5.Location = new Point(217, 86); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new Size(50, 19); this.labelControl5.TabIndex = 3; this.labelControl5.Text = "类 别:"; this.lbl_Name.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_Name.Appearance.ForeColor = Color.Silver; this.lbl_Name.Location = new Point(286, 16); this.lbl_Name.Name = "lbl_Name"; this.lbl_Name.Size = new Size(28, 19); this.lbl_Name.TabIndex = 4; this.lbl_Name.Text = "张三"; this.lbl_Number.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_Number.Appearance.ForeColor = Color.Silver; this.lbl_Number.Location = new Point(286, 121); this.lbl_Number.Name = "lbl_Number"; this.lbl_Number.Size = new Size(117, 19); this.lbl_Number.TabIndex = 4; this.lbl_Number.Text = "2220124555555"; this.lbl_Number.Click += new EventHandler(this.lbl_Number_Click); this.lbl_sex.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_sex.Appearance.ForeColor = Color.Silver; this.lbl_sex.Location = new Point(286, 51); this.lbl_sex.Name = "lbl_sex"; this.lbl_sex.Size = new Size(14, 19); this.lbl_sex.TabIndex = 4; this.lbl_sex.Text = "男"; this.lbl_age.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_age.Appearance.ForeColor = Color.Silver; this.lbl_age.Location = new Point(286, 156); this.lbl_age.Name = "lbl_age"; this.lbl_age.Size = new Size(18, 19); this.lbl_age.TabIndex = 4; this.lbl_age.Text = "19"; this.lbl_persontype.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_persontype.Appearance.ForeColor = Color.Silver; this.lbl_persontype.Location = new Point(286, 86); this.lbl_persontype.Name = "lbl_persontype"; this.lbl_persontype.Size = new Size(52, 19); this.lbl_persontype.TabIndex = 4; this.lbl_persontype.Text = "VIP客户"; this.lbl_channl.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.lbl_channl.Appearance.ForeColor = Color.Silver; this.lbl_channl.Location = new Point(286, 191); this.lbl_channl.Name = "lbl_channl"; this.lbl_channl.Size = new Size(37, 19); this.lbl_channl.TabIndex = 3; this.lbl_channl.Text = "通道1"; this.labelControl7.Appearance.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold, GraphicsUnit.Point, 134); this.labelControl7.Appearance.ForeColor = Color.Silver; this.labelControl7.Location = new Point(217, 191); this.labelControl7.Name = "labelControl7"; this.labelControl7.Size = new Size(70, 19); this.labelControl7.TabIndex = 4; this.labelControl7.Text = "识别通道:"; this.panelControl1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); this.panelControl1.Appearance.BackColor = Color.Transparent; this.panelControl1.Appearance.Options.UseBackColor = true; this.panelControl1.BorderStyle = BorderStyles.Simple; this.panelControl1.Controls.Add(this.lbl_time); this.panelControl1.Controls.Add(this.gaugeControl1); this.panelControl1.Controls.Add(this.labelControl4); this.panelControl1.Controls.Add(this.labelControl7); this.panelControl1.Controls.Add(this.labelControl1); this.panelControl1.Controls.Add(this.lbl_persontype); this.panelControl1.Controls.Add(this.labelControl2); this.panelControl1.Controls.Add(this.lbl_age); this.panelControl1.Controls.Add(this.labelControl3); this.panelControl1.Controls.Add(this.lbl_sex); this.panelControl1.Controls.Add(this.labelControl5); this.panelControl1.Controls.Add(this.lbl_Number); this.panelControl1.Controls.Add(this.lbl_Name); this.panelControl1.Controls.Add(this.lbl_channl); this.panelControl1.Location = new Point(4, 233); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new Size(424, 239); this.panelControl1.TabIndex = 5; this.lbl_time.AutoSize = true; this.lbl_time.Font = new Font("微软雅黑", 10.5f, FontStyle.Bold); this.lbl_time.ForeColor = Color.Silver; this.lbl_time.Location = new Point(15, 215); this.lbl_time.Name = "lbl_time"; this.lbl_time.Size = new Size(159, 19); this.lbl_time.TabIndex = 6; this.lbl_time.Text = "2017-12-25 13:18:85"; this.gaugeControl1.set_AutoLayout(false); this.gaugeControl1.BackColor = Color.Transparent; this.gaugeControl1.set_BorderStyle(BorderStyles.NoBorder); this.gaugeControl1.get_Gauges().AddRange(new IGauge[] { this.circularGauge1 }); this.gaugeControl1.Location = new Point(4, 16); this.gaugeControl1.Name = "gaugeControl1"; this.gaugeControl1.Size = new Size(207, 196); this.gaugeControl1.TabIndex = 7; this.circularGauge1.set_Bounds(new Rectangle(2, 3, 195, 184)); this.circularGauge1.get_Labels().AddRange(new LabelComponent[] { this.labelComponent1, this.labelComponent2 }); this.circularGauge1.set_Name("circularGauge1"); this.circularGauge1.get_RangeBars().AddRange(new ArcScaleRangeBarComponent[] { this.arcScaleRangeBarComponent1 }); this.circularGauge1.get_Scales().AddRange(new ArcScaleComponent[] { this.arcScaleComponent1 }); this.labelComponent1.get_AppearanceText().set_Font(new Font("Segoe UI", 27.75f)); this.labelComponent1.set_Name("circularGauge1_Label1"); this.labelComponent1.set_Shader(new StyleShader("Colors[Style1:OrangeRed;Style2:OrangeRed]")); this.labelComponent1.set_Size(new SizeF(140f, 60f)); this.labelComponent1.set_Text("910"); this.labelComponent1.set_UseColorScheme(false); this.labelComponent1.set_ZOrder(-1001); this.labelComponent2.get_AppearanceText().set_Font(new Font("Tahoma", 15f)); this.labelComponent2.get_AppearanceText().set_TextBrush(new SolidBrushObject("Color:Black")); this.labelComponent2.set_Name("circularGauge1_Label2"); this.labelComponent2.set_Position(new PointF2D(125f, 175f)); this.labelComponent2.set_Shader(new StyleShader("Colors[Style1:White;Style2:White]")); this.labelComponent2.set_Text("相似度"); this.labelComponent2.set_ZOrder(-1001); this.arcScaleRangeBarComponent1.set_ArcScale(this.arcScaleComponent1); this.arcScaleRangeBarComponent1.set_Name("circularGauge1_RangeBar2"); this.arcScaleRangeBarComponent1.set_RoundedCaps(true); this.arcScaleRangeBarComponent1.set_Shader(new StyleShader("Colors[Style1:OrangeRed;Style2:OrangeRed]")); this.arcScaleRangeBarComponent1.set_ShowBackground(true); this.arcScaleRangeBarComponent1.set_StartOffset(80f); this.arcScaleRangeBarComponent1.set_ZOrder(-10); this.arcScaleComponent1.get_AppearanceMajorTickmark().set_BorderBrush(new SolidBrushObject("Color:White")); this.arcScaleComponent1.get_AppearanceMajorTickmark().set_ContentBrush(new SolidBrushObject("Color:White")); this.arcScaleComponent1.get_AppearanceMinorTickmark().set_BorderBrush(new SolidBrushObject("Color:White")); this.arcScaleComponent1.get_AppearanceMinorTickmark().set_ContentBrush(new SolidBrushObject("Color:White")); this.arcScaleComponent1.get_AppearanceTickmarkText().set_Font(new Font("Tahoma", 8.5f)); this.arcScaleComponent1.get_AppearanceTickmarkText().set_TextBrush(new SolidBrushObject("Color:#484E5A")); this.arcScaleComponent1.set_Center(new PointF2D(125f, 125f)); this.arcScaleComponent1.set_EndAngle(90f); this.arcScaleComponent1.set_MajorTickCount(0); this.arcScaleComponent1.get_MajorTickmark().set_FormatString("{0:F0}"); this.arcScaleComponent1.get_MajorTickmark().set_ShapeOffset(-14f); this.arcScaleComponent1.get_MajorTickmark().set_ShapeType(67); this.arcScaleComponent1.get_MajorTickmark().set_TextOrientation(3); this.arcScaleComponent1.set_MaxValue(100f); this.arcScaleComponent1.set_MinorTickCount(0); this.arcScaleComponent1.get_MinorTickmark().set_ShapeOffset(-7f); this.arcScaleComponent1.get_MinorTickmark().set_ShapeType(68); this.arcScaleComponent1.set_Name("scale1"); this.arcScaleComponent1.set_StartAngle(-270f); this.arcScaleComponent1.set_Value(20f); base.AutoScaleMode = AutoScaleMode.None; this.BackColor = Color.FromArgb(45, 45, 48); base.Controls.Add(this.panelControl1); base.Controls.Add(this.pictureBox2); base.Controls.Add(this.pictureBox1); this.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134); base.Name = "FaceCompareUserControl3"; base.Size = new Size(431, 475); ((ISupportInitialize)this.pictureBox2).EndInit(); ((ISupportInitialize)this.pictureBox1).EndInit(); ((ISupportInitialize)this.panelControl1).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); this.circularGauge1.EndInit(); this.labelComponent1.EndInit(); this.labelComponent2.EndInit(); this.arcScaleRangeBarComponent1.EndInit(); this.arcScaleComponent1.EndInit(); base.ResumeLayout(false); }
public void BuildChart() { LineChartControl.BuildChart(); GaugeControl.BuildChart(); }