internal MeanMaxDetailControl()
        {
            InitializeComponent();

            MaximizeButton.Location = new Point(ChartBanner.Width - 50, 0);

            ChartBanner.Text = CommonResources.Text.LabelPower;
            zedChart.GraphPane.XAxis.ScaleFormatEvent += new Axis.ScaleFormatHandler(XScaleFormatEvent);
            zedChart.PointValueEvent += new ZedGraphControl.PointValueHandler(zedChart_PointValueEvent);
            control = this;

            // Setup tool tips
            // Create the ToolTip and associate with the Form container.
            ToolTip toolTip = new ToolTip();

            // Set up the delays for the ToolTip.
            toolTip.AutoPopDelay = 5000;
            toolTip.InitialDelay = 1000;
            toolTip.ReshowDelay  = 500;
            // Force the ToolTip text to be displayed whether or not the form is active.
            toolTip.ShowAlways = true;

            // Set up the ToolTip text for the Button and Checkbox.
            toolTip.SetToolTip(this.SaveImageButton, CommonResources.Text.ActionSave);
            toolTip.SetToolTip(this.ZoomInButton, CommonResources.Text.ActionZoomIn);
            toolTip.SetToolTip(this.ZoomOutButton, CommonResources.Text.ActionZoomOut);
            // TODO: Localize tooltips (should be in ST core resources)
            toolTip.SetToolTip(this.ZoomChartButton, "Fit to Window");
            toolTip.SetToolTip(this.ExtraChartsButton, "More Charts");
            toolTip.SetToolTip(this.ExportButton, CommonResources.Text.ActionExport);
        }
Exemple #2
0
        public Control CreatePageControl()
        {
            if (control == null)
            {
                control = new MeanMaxDetailControl();
                SetActivities(null);
            }

            return(control);
        }
Exemple #3
0
 public void UICultureChanged(CultureInfo culture)
 {
     control = CreatePageControl() as MeanMaxDetailControl;
     control.UICultureChanged(culture);
 }