private void fontSizeUpDown_ValueChanged(object sender, EventArgs e)
        {
            FontSize = (float)fontSizeUpDown.Value;

            List1.Invalidate();
            List2.Invalidate();
        }
        public void DoRefresh()
        {
            FontSize        = Settings.parameterGreatScreenFontSize;
            label1.Location = Settings.parameterGreatScreenLabel1Location;

            //clear the lists
            List1.Items.Clear();
            List2.Items.Clear();

            if (FStatic.Functions.Count > 0)
            {
                int i = 0;
                foreach (Function f in FStatic.Functions)
                {
                    if (f.selected)
                    {
                        List1.Items.Add(f.name + ":y = " + f.Text);
                        List1.Items[i].ForeColor = f.fS.Color;

                        List2.Items.Add(f.TrueValueToString());
                        List2.Items[i].ForeColor = f.fS.Color;

                        i++;
                    }
                }
            }

            //refresh the list
            List1.Invalidate();
            List2.Invalidate();
            AdjustSizes();
        }
示例#3
0
        public void DoRefresh()
        {
            List1.Items.Clear();

            int i = 0;

            foreach (xCrossEntry entry in FStatic.xCrossList)
            {
                List1.Items.Add("" + (i + 1) + ") " + entry.name);

                List1.Items[i].ForeColor = Color.White;

                List1.Items[i++].Selected = entry.selected;
            }

            List1.Invalidate();
        }