Exemple #1
0
        private void cboxDataLine_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox       obj     = (CheckBox)sender;
            SettingsSeries setting = listSettings.Find(cbox2 => cbox2.cbox2 == obj);

            chart.Visible(setting.name.ToString(), setting.cbox2.Checked);
            chart.IsVisibleInLegend(setting.name.ToString() + "Point", !setting.cbox2.Checked);
        }
Exemple #2
0
        /// <summary>
        /// Change visibility
        /// </summary>
        private void turnOffSeries(CheckBox obj)
        {
            SettingsSeries sender = listSettings.Find(cbox => cbox.cbox == obj);

            if (sender.cbox2 != null)
            {
                sender.cbox2.Enabled = (sender.cbox.Checked == true) ? true : false;
                sender.cbox2.Checked = true;
            }
            if (sender.name.ToString() == "data")
            {
                chart.Visible(sender.name.ToString() + "Point", sender.cbox.Checked);
            }
            chart.Visible(sender.name.ToString(), sender.cbox.Checked);
            sender.cbo.Enabled = (sender.cbox.Checked == true) ? true : false;
        }