Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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;
    }
Ejemplo n.º 3
0
    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;
    }
Ejemplo n.º 4
0
    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);
    }