Exemplo n.º 1
0
 private void bg_worker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         var client = new LemonwayClient();
         Thread.Sleep(2000);
         Result = client.Fibonacci(10);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
 private void ConsumerForm_Load(object sender, EventArgs e)
 {
     _client         = new LemonwayClient();
     rtb_xml.Text    = XmlSample;
     tssl_event.Text = "event :";
 }