示例#1
0
        public Control CreatePageControl()
        {
            if (control == null)
            {
                control = new ActivityComparerDetailControl();
                SetActivities(null);
            }

            return(control);
        }
        //private Graphics lockGraphic;
        //private Activation pageActivate;

        #endregion

        #region Constructor

        internal ActivityComparerDetailControl()
        {
            InitializeComponent();

            // Setup button images
            SaveImageButton.CenterImage   = CommonResources.Images.Save16;
            RefreshButton.CenterImage     = CommonResources.Images.Refresh16;
            ZoomInButton.CenterImage      = CommonResources.Images.ZoomIn16;
            ZoomOutButton.CenterImage     = CommonResources.Images.ZoomOut16;
            ZoomChartButton.CenterImage   = Resources.Images.ZoomFit;
            ExtraChartsButton.CenterImage = Resources.Images.Charts;
            ExportButton.CenterImage      = CommonResources.Images.Export16;
            MaximizeButton.CenterImage    = Resources.Images.PanelExpand;

            chartType        = Common.ChartBasis.Power;
            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);
            toolTip.SetToolTip(this.ZoomChartButton, "Fit to Window");
            toolTip.SetToolTip(this.ExtraChartsButton, "More Charts");
            toolTip.SetToolTip(this.RefreshButton, CommonResources.Text.ActionRefresh);
            toolTip.SetToolTip(this.ExportButton, CommonResources.Text.ActionExport);
        }
示例#3
0
 public void UICultureChanged(CultureInfo culture)
 {
     control = CreatePageControl() as ActivityComparerDetailControl;
     control.UICultureChanged(culture);
 }