Ejemplo n.º 1
0
        private TabloidConfigIndicateur getIndicFromTag(object tag)
        {
            var c = (TabloidConfigCell)tag;

            if (c == null || string.IsNullOrEmpty(c.Indicateur))
            {
                return(null);
            }

            return(IndicCache.GetIndicCache(c.Indicateur));//indicDic[c.Indicateur];
        }
Ejemplo n.º 2
0
        private PictureBox getIndicImageCtrl(TabloidConfigCell c)
        {
            var img = unknow;

            if (c != null)
            {
                var i = IndicCache.GetIndicCache(c.Indicateur);
                img = getImage(i);
            }

            var imgCtrl = new PictureBox {
                BackgroundImage = img, Dock = DockStyle.Fill, BackgroundImageLayout = ImageLayout.Center
            };

            imgCtrl.Tag    = c;
            imgCtrl.Click += ImgCtrl_Click;
            imgCtrl.Paint += setBorder;

            return(imgCtrl);
        }