コード例 #1
0
        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");
            }
        }
コード例 #2
0
ファイル: MyPublisherForm.cs プロジェクト: ssickles/archive
      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");
         }
      }