示例#1
0
 private void btnToVL64_Click(object sender, EventArgs e)
 {
     try
     {
         string value = WireEncoding.EncodeInt32(int.Parse(txtToVL64.Text));
         txtFromVL64.Text = value;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
示例#2
0
 private void btnFromVL64_Click(object sender, EventArgs e)
 {
     try
     {
         int i;
         int value = WireEncoding.DecodeInt32(txtFromVL64.Text, out i);
         txtToVL64.Text = value + "";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }