Exemple #1
0
        /// <summary>
        /// Initializing object GraphControl.
        /// </summary>
        public GraphControl()
        {
            this._stateSettings        = new GraphStateSettings();
            this._toolTipMousePosition = new ToolTip();

            this._toolTipMousePosition.ShowAlways = false;

            this.InitializeComponent();
        }
		/// <summary>
		/// Initializing object GraphControl.
		/// </summary>
		public GraphControl()
		{
			this._stateSettings        = new GraphStateSettings();
			this._toolTipMousePosition = new ToolTip();

			this._toolTipMousePosition.ShowAlways = false;

			this.InitializeComponent();
		}
Exemple #3
0
        internal void SetId(string id, string preprocessorTypeName)
        {
            this._id = "G." + id;
            this._preprocessorTypeName = preprocessorTypeName;

            this._stateSettings = Program.Model.LayoutSettings.GetExtendedSettings <GraphStateSettings>(
                this._id,
                preprocessorTypeName,
                Program.Model.Settings.ReportLanguage
                );

            if (this._stateSettings == null)
            {
                this._stateSettings = new GraphStateSettings();
            }

            this.chart.Legends[0].Enabled = this._stateSettings.LegendEnabled;

            // set background color for the legend as transparent
            this.chart.Legends[0].BackColor = Color.Transparent;
        }
		internal void SetId(string id, string preprocessorTypeName)
		{
			this._id                   = "G." + id;
			this._preprocessorTypeName = preprocessorTypeName;

			this._stateSettings = Program.Model.LayoutSettings.GetExtendedSettings<GraphStateSettings>(
				this._id,
				preprocessorTypeName,
				Program.Model.Settings.ReportLanguage
			);

			if (this._stateSettings == null)
			{
				this._stateSettings = new GraphStateSettings();
			}

			this.chart.Legends[0].Enabled = this._stateSettings.LegendEnabled;

			// set background color for the legend as transparent
			this.chart.Legends[0].BackColor = Color.Transparent;
		}