private void part5_btn_Click(object sender, EventArgs e)
 {
     webEncrypt.ServiceClient myclient = new webEncrypt.ServiceClient();  //creat proxy
     part5_En.Text = myclient.Encrypt(part5_txtinput.Text);               //Encrypt
     part5_De.Text = myclient.Decrypt(part5_En.Text);                     //Decrypt
     myclient.Close();
 }
 public Order Decoder(string orderstr)
 {
     Order ord = new Order();
     webEncrypt.ServiceClient proxy = new webEncrypt.ServiceClient();
     string str = proxy.Decrypt(orderstr);   
     string[] arr = str.Split(new char[] { '_' });   //from string to order
     ord.setID(Convert.ToInt32(arr[0]));
     ord.setCardNo(Convert.ToInt32(arr[1]));
     ord.setAmt(Convert.ToInt32(arr[2]));
     ord.setPrice(Convert.ToInt32(arr[3]));
     return ord;
 }