Ejemplo n.º 1
0
        private ChartDashboardSettings GetSettings(string objectId)
        {
            ChartDashboardSettings result = null;

            if (chartDashboardSettingsProvider != null)
            {
                result = chartDashboardSettingsProvider.Load(objectId);
            }

            if (result == null)
            {
                result = new ChartDashboardSettings();
            }
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            MaxHeight     = 300;
            ContentHeight = 270;

            ScrollBars = ScrollBars.None;

            buttonGraphType.ID = ID + "_GraphType";
            buttonTimeFrame.ID = ID + "_TimeFrame";

            buttonZoom.ID                = ID + "_ButtonZoom";
            buttonZoom.Mode              = ButtonEx.ButtonType.Link;
            buttonZoom.Text              = "Zoom";
            buttonZoom.ImageUrl          = ImagePathProvider.PreviewImage;
            buttonZoom.UseSubmitBehavior = false;
            buttonZoom.OnClientClick     = JSChartObjectName + ".ShowZoomWindow();";



            settings = GetSettings(ClientID);
        }