Ejemplo n.º 1
0
        public IndicLayout(TabloidConfigSynthese s)
        {
            currentSynthese = s;

            InitializeComponent();

            setImage();

            cmbIndic.DataSource = IndicCache.GetIndicList().Values.ToArray();

            if (currentSynthese != null)
            {
                renderSynthese();
            }

            setActive(panel);

            if (panel.Controls.Count > 1)
            {
                var ctrl = panel.Controls[1];
                if (ctrl.Controls.Count > 1)
                {
                    setActiveImg((PictureBox)ctrl.Controls[1]);
                }
            }
        }
Ejemplo n.º 2
0
        private void btnCreateIndic_Click(object sender, EventArgs e)
        {
            var wiz = new WizardIndic();

            if (wiz.ShowDialog() == DialogResult.OK)
            {
                cmbIndic.DataSource = null;
                cmbIndic.DataSource = IndicCache.GetIndicList().Values.ToArray();

                var indic = wiz.Result;
                ((TabloidConfigCell)currentImage.Tag).Indicateur = indic.Nom;
                currentImage.BackgroundImage = getImage(indic);

                setActiveImg(currentImage);
            }
        }