Exemplo n.º 1
0
 //call client function the same like call the server function
 public void HandleTest(string thriftType)
 {
     if (!string.IsNullOrEmpty(thriftType))
     {
         ThriftBase thriftClient = ThriftFactory.GetThrift(thriftType);
         thriftClient.Test(UpdateLabel);
     }
 }
Exemplo n.º 2
0
 //call client function the same like call the server function
 public void HandleTest(object sender)
 {
     if (sender != null && sender is Button)
     {
         Button     btn          = (Button)sender;
         string     btnText      = btn.Text.Trim();
         ThriftBase thriftClient = ThriftFactory.GetThrift(btnText);
         thriftClient.Test(UpdateLabel);
     }
 }