コード例 #1
0
        /// <summary>
        /// 获取到接入服务
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void amtium_GotServices(object sender, AmtiumGotServicesEventArgs e)
        {
            labelStatus.Text = "";
            timer1.Stop();
            m_config.Services = e.Services;
            EnableControls();

            /* 肯定要显示选项窗口 */
            new FormOptions(this).ShowDialog();
        }
コード例 #2
0
 protected virtual void OnGotServices(AmtiumGotServicesEventArgs e)
 {
     if (GotServices != null)
     {
         mainThreadContext.Post(new SendOrPostCallback((object sender) =>
         {
             GotServices(sender, e);
         }), this);
     }
 }