39
void
_modem_NetOperatorChanged(
string
newOperatorName)
{
if
(InvokeRequired)
{
BeginInvoke(
new
NetworkOperatorChangedHandler
(_modem_NetOperatorChanged),
new
object
[] { newOperatorName });
return
;
}
txtNetOperator.Text = newOperatorName;
}
void
_modem_IMSIChanged(
string
newIMSI)
{
if
(InvokeRequired)
{
BeginInvoke(
new
IMSIChangedHandler
(_modem_IMSIChanged),
new
object
[] { newIMSI });
return
;
}
txtImsi.Text = newIMSI;
}
void
_modem_IMEIChanged(
string
newIMEI)
{
if
(InvokeRequired)
{
BeginInvoke(
new
IMEIChangedHandler
(_modem_IMEIChanged),
new
object
[] { newIMEI });
return
;
}
txtImei.Text = newIMEI;
}
void
_modem_DataProtocolChanged(
DataProtocolType
protocolType)
{
if
(InvokeRequired)
{
BeginInvoke(
new
DataProtocolChangedHandler
(_modem_DataProtocolChanged),
new
object
[] { protocolType });
return
;
}
switch
(protocolType)
{
case
DataProtocolType
.EDGE:
case
DataProtocolType
.GPRS:
case
DataProtocolType
.None:
txtDataProtocol.Text = protocolType.ToString();
break
;
default
:
txtDataProtocol.Text =
""
;
break
;
}
}
void
_modem_CellNameChanged(
string
newCellName)
{
if
(InvokeRequired)
{
BeginInvoke(
new
CellNameChangedHandler
(_modem_CellNameChanged),
new
object
[] { newCellName });
return
;
}
txtCellName.Text = newCellName;
}
void
_modem_RxSms(
Sms
sms)
{
MessageBox
.Show(
"NEW SMS\r\n"
+
"==============\r\n"
+
sms.Time.ToString() +
"\r\n\r\n"
+
"From "
+ sms.
"\r\n"
+
sms.Text,
"New SMS"
);
}
#endregion
#region
RAS events handlers
/* This region contains the handlers for the events fired by the RAS entry manager
*/
void
_rasEntry_ConnectionStateChanged(
RasConnectionState
oldConnState,
RasConnectionState
newConnState)
{
if
(InvokeRequired)
{
BeginInvoke(
new
RasEntryManager
.
ConnectionStateChangedHandler
(_rasEntry_ConnectionStateChanged),
new
object
[] { oldConnState, newConnState });
return
;
}
txtRasStatus.Text = newConnState.ToString();
switch
(newConnState)
{
case
RasConnectionState
.Connected:
btnDial.Enabled =
false
;
btnHangUp.Enabled =
true
;
break
;
case
RasConnectionState
.Disconnected:
btnDial.Enabled =
true
;
btnHangUp.Enabled =
false
;
break
;
Содержание 4GMCU
Страница 1: ...4GMCU Technical Manual V 1 3...
Страница 11: ...11 Technical Views 4GMCU...
Страница 63: ......