예제 #1
0
        private ioDsp makeIoDsp(int bit, PictureBox pic, Label noLabel, Label commentLabel)
        {
            ioDsp dsp = new ioDsp();

            dsp.bit = bit;
            dsp.pic = pic;
            dsp.IoNoLabel = noLabel;
            dsp.IoCommentLabel = commentLabel;

            return dsp;
        }
예제 #2
0
        private void ioDspDefine()
        {
            ioDspArr1 = new ioDsp[] {
                makeIoDsp(0, pbIO1, lblIoCode1, lblIoComment1),
                makeIoDsp(1, pbIO2, lblIoCode2, lblIoComment2),
                makeIoDsp(2, pbIO3, lblIoCode3, lblIoComment3),
                makeIoDsp(3, pbIO4, lblIoCode4, lblIoComment4),
                makeIoDsp(4, pbIO5, lblIoCode5, lblIoComment5),
                makeIoDsp(5, pbIO6, lblIoCode6, lblIoComment6),
                makeIoDsp(6, pbIO7, lblIoCode7, lblIoComment7),
                makeIoDsp(7, pbIO8, lblIoCode8, lblIoComment8),
                makeIoDsp(8, pbIO9, lblIoCode9, lblIoComment9),
                makeIoDsp(9, pbIO10, lblIoCode10, lblIoComment10),
                makeIoDsp(10, pbIO11, lblIoCode11, lblIoComment11),
                makeIoDsp(11, pbIO12, lblIoCode12, lblIoComment12),
                makeIoDsp(12, pbIO13, lblIoCode13, lblIoComment13),
                makeIoDsp(13, pbIO14, lblIoCode14, lblIoComment14),
                makeIoDsp(14, pbIO15, lblIoCode15, lblIoComment15),
                makeIoDsp(15, pbIO16, lblIoCode16, lblIoComment16)
            };

            ioDspArr2 = new ioDsp[] {
                makeIoDsp(0, pbIO17, lblIoCode17, lblIoComment17),
                makeIoDsp(1, pbIO18, lblIoCode18, lblIoComment18),
                makeIoDsp(2, pbIO19, lblIoCode19, lblIoComment19),
                makeIoDsp(3, pbIO20, lblIoCode20, lblIoComment20),
                makeIoDsp(4, pbIO21, lblIoCode21, lblIoComment21),
                makeIoDsp(5, pbIO22, lblIoCode22, lblIoComment22),
                makeIoDsp(6, pbIO23, lblIoCode23, lblIoComment23),
                makeIoDsp(7, pbIO24, lblIoCode24, lblIoComment24),
                makeIoDsp(8, pbIO25, lblIoCode25, lblIoComment25),
                makeIoDsp(9, pbIO26, lblIoCode26, lblIoComment26),
                makeIoDsp(10, pbIO27, lblIoCode27, lblIoComment27),
                makeIoDsp(11, pbIO28, lblIoCode28, lblIoComment28),
                makeIoDsp(12, pbIO29, lblIoCode29, lblIoComment29),
                makeIoDsp(13, pbIO30, lblIoCode30, lblIoComment30),
                makeIoDsp(14, pbIO31, lblIoCode31, lblIoComment31),
                makeIoDsp(15, pbIO32, lblIoCode32, lblIoComment32)
            };
        }