예제 #1
0
 // Stock Quote
 private void button6_Click(object sender, EventArgs e)
 {
     if (textBox9.Text!="")
     {
         ServiceReference3.ServiceClient client_2 = new ServiceReference3.ServiceClient();
         textBox10.Text = "$" + client_2.getStockquote(textBox9.Text);
         client_2.Close();
     }
     else
     {
         MessageBox.Show("Enter Valid Stock Symbol");
     }
 }
 private void button3_Click(object sender, EventArgs e)
 {
     ServiceReference3.ServiceClient ob = new ServiceReference3.ServiceClient();
     string t = ob.getStockquote(textBox4.Text);
     textBox5.Text = t;
 }