コード例 #1
0
        private void ProcessOnRegisterStateChange(IMbnRegistration newInterface)
        {
            MBN_REGISTER_STATE state = newInterface.GetRegisterState();

            LogMessage("ProcessOnRegisterStateChange.  State: " + state.ToString() + "  Name: " + newInterface.GetProviderName());
            this.Invoke((MethodInvoker) delegate()
            {
                updateRegistration(newInterface);
            });
        }
コード例 #2
0
        private void ProcessOnSetRegisterModeComplete(IMbnRegistration newInterface, uint requestID, int status)
        {
            MBN_REGISTER_STATE state = newInterface.GetRegisterState();

            LogMessage("ProcessOnSetRegisterModeComplete.  State: " + state.ToString());
            if (state == MBN_REGISTER_STATE.MBN_REGISTER_STATE_ROAMING ||
                state == MBN_REGISTER_STATE.MBN_REGISTER_STATE_HOME ||
                state == MBN_REGISTER_STATE.MBN_REGISTER_STATE_PARTNER)
            {
                LogMessage("Registered to " + newInterface.GetProviderName());
            }
            this.Invoke((MethodInvoker) delegate()
            {
                updateRegistration(newInterface);
            });
        }