private void button_read_ulong_Click(object sender, EventArgs e)
 {
     // 读取ulong变量
     if (textBox12.Text == "1")
     {
         DemoUtils.ReadResultRender(fujiSPB.ReadUInt64(textBox3.Text), textBox3.Text, textBox4);
     }
     else
     {
         DemoUtils.ReadResultRender(fujiSPB.ReadUInt64(textBox3.Text, ushort.Parse(textBox12.Text)), textBox3.Text, textBox4);
     }
 }
예제 #2
0
 private void test3( )
 {
     short  d100_short  = fujiSPB.ReadInt16("D100").Content;
     ushort d100_ushort = fujiSPB.ReadUInt16("D100").Content;
     int    d100_int    = fujiSPB.ReadInt32("D100").Content;
     uint   d100_uint   = fujiSPB.ReadUInt32("D100").Content;
     long   d100_long   = fujiSPB.ReadInt64("D100").Content;
     ulong  d100_ulong  = fujiSPB.ReadUInt64("D100").Content;
     float  d100_float  = fujiSPB.ReadFloat("D100").Content;
     double d100_double = fujiSPB.ReadDouble("D100").Content;
     // need to specify the text length
     string d100_string = fujiSPB.ReadString("D100", 10).Content;
 }
 private void button_read_ulong_Click(object sender, EventArgs e)
 {
     // 读取ulong变量
     DemoUtils.ReadResultRender(fujiSPB.ReadUInt64(textBox3.Text), textBox3.Text, textBox4);
 }