private void frmDataAnalize_Load(object sender, EventArgs e) { _oper = new TLWCommOper(System.IO.Path.Combine(CurrentPath, "tlw.dll")); InitDataType(); _width = CabinetSize.GetSize().Width; _height = CabinetSize.GetSize().Height; InitRowList(_height); InitDecimalOrHexDisplay(); InitSinglePixelList(_width); }
private void cbDataType_SelectedIndexChanged(object sender, EventArgs e) { if (cbDataType.SelectedIndex == 0) { //箱体 _width = CabinetSize.GetSize().Width; _height = CabinetSize.GetSize().Height; } else { //模组 _width = CabinetSize.ModulePixelWidth; _height = CabinetSize.ModulePixelHeight; } InitRowList(_height); InitDecimalOrHexDisplay(); InitSinglePixelList(_width); }