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