void OnFireEvent(object sender, EventArgs e) { string endpointName = GetEndpointName(); MyEventsClient proxy = new MyEventsClient(endpointName); if (m_Event1RadioButton.Checked) { proxy.OnEvent1(); } if (m_Event2RadioButton.Checked) { proxy.OnEvent2(42); } if (m_Event3RadioButton.Checked) { proxy.OnEvent3(42, "Hello"); } }
void OnFireEvent(object sender,EventArgs e) { string endpointName = GetEndpointName(); MyEventsClient proxy = new MyEventsClient(endpointName); if(m_Event1RadioButton.Checked) { proxy.OnEvent1(); } if(m_Event2RadioButton.Checked) { proxy.OnEvent2(42); } if(m_Event3RadioButton.Checked) { proxy.OnEvent3(42,"Hello"); } }