usingIND245; staticvoidMain(string[]args) { stringPORTNAME="COM3"; intBAUDRATE=9600; intTESTNUM=3; doubleweight=0; stringweightUnit=string.Empty; ind245i245=newind245(); //打开