Ejemplo n.º 1
0
        private void _init(List <WarnVo> lstWarnVo, Form oParent)
        {
            this.m_oParentForm = oParent;
            var iCount = lstWarnVo.Count;

            this.m_oTableLayoutWarn         = DevTableLayoutUtils.addLayout("tableLayoutWarn", 1, iCount, true, this);
            this.m_oTableLayoutWarn.Visible = false;
            //this.Controls.Clear();
            for (int i = 0; i < iCount; i++)
            {
                var oWarnVo          = lstWarnVo[i];
                var oWarnItemControl = WarnItemControlV2.genWarmFromItem(oWarnVo);
                oWarnItemControl.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
                DevTableLayoutUtils.addItemControl(oWarnItemControl, this.m_oTableLayoutWarn, 0, i);
                this.m_oDicWarnItem.Add(oWarnVo.devType, oWarnItemControl);
            }
        }
Ejemplo n.º 2
0
        public static WarnItemControlV2 genWarmFromItem(WarnVo oWarnVo)
        {
            var oWarnItemControl = new WarnItemControlV2(oWarnVo);

            return(oWarnItemControl);
        }