public static WarnControlV2 genWarmControlV2(List <WarnVo> lstWarnVo, Form oParent) { var oWarnControl = new WarnControlV2(lstWarnVo, oParent); oParent.Width = oWarnControl.Width + (WarnControlV2.SPLIT * 2); oParent.Height = oWarnControl.Height + WarnControlV2.SPLIT; //oParent.Controls.Clear(); oParent.Controls.Add(oWarnControl); return(oWarnControl); }
public static void updateViewV2(List <WarnVo> lstWarnVo, WarnControlV2 oWarnControl) { oWarnControl.updateView(lstWarnVo); }