public void LoadFrom(MyReader mr) { pcbName = mr.LoadString(); pcbWidth = mr.LoadInt(); pcbHeight = mr.LoadInt(); spareWidth = mr.LoadInt(); _pixelSize = mr.LoadDouble(); useMainBoardBarcode = mr.LoadBool(); useSubBoardBarcode = mr.LoadBool(); customer = mr.LoadString(); halftoneHeight = mr.LoadDouble(); int mpc = mr.LoadInt(); int sbc = mr.LoadInt(); int cpc = mr.LoadInt(); mr.LoadLineEnd(); for (int i = 0; i < mpc; i++) { MarkPoint mp = new MarkPoint(); mp.LoadFrom(mr); AddWin(mp); } for (int i = 0; i < sbc; i++) { SubBoard sb = new SubBoard(); sb.LoadFrom(mr); AddWin(sb); } for (int i = 0; i < cpc; i++) { WinType wt = mr.LoadType(); CheckWinBase cw = NewComponent(wt); cw.LoadFrom(mr); AddWin(cw); } }