コード例 #1
0
            public string printNormalBlock()
            {
                StringBuilder result = new StringBuilder();

                result.Append("ID: " + DatabaseId);
                result.Append(" Block Num: " + BlockNumber);
                result.Append(" Block Lan: " + BlockLanguage);
                result.Append(" BlkType: " + BlockType);
                result.Append(" IntfTime: " + IntfTime.ToString("o"));
                result.Append(" CodeTime: " + CodeTime.ToString("o"));
                result.Append(" Psw: " + (Password == 3) + " (" + Password + ")");
                result.Append(" Attr: " + Attribute);
                result.Append("\r\n");
                result.Append(" IntfTime: " + BitConverter.ToString(IntfTime_ms) + "-" + BitConverter.ToString(IntfTime_dy));
                result.Append("\r\n");
                result.Append(" CodeTime: " + BitConverter.ToString(CodeTime_ms) + "-" + BitConverter.ToString(CodeTime_dy));
                result.Append("\r\n");
                result.Append("MC5CODE \r\n");
                result.Append(MC5CODE + "\r\n");
                result.Append("\r\n");
                result.Append("SSBPART (length: " + SsbLen + "\r\n");
                result.Append(SSBPART + "\r\n");
                result.Append("ADDINFO (length: " + AddLen + "\r\n");
                result.Append(ADDINFO + "\r\n");
                return(result.ToString());
            }
コード例 #2
0
            public string printSystemDataList()
            {
                StringBuilder result = new StringBuilder();

                result.Append("ID: " + DatabaseId);
                result.Append(" (hex:  " + int.Parse(DatabaseId).ToString("x"));
                result.Append(") Block Num: " + BlockNumber);
                result.Append(" BlkType: " + BlockType);
                result.Append(" / " + iBlockType);
                result.Append(" IntfTime: " + IntfTime.ToString("o"));
                result.Append(" CodeTime: " + CodeTime.ToString("o"));
                result.Append(" Size: " + BlockTotLen);
                result.Append("\r\n");
                result.Append("PG code \r\n");
                result.Append(encoding.GetString(PGcode) + "\r\n");
                result.Append("PG footer \r\n");
                result.Append(encoding.GetString(PGfooter) + "\r\n");
                return(result.ToString());
            }