Event will not fire

  • Thread starter Thread starter Cub71
  • Start date Start date
C

Cub71

Can anyone explain to me why none of these fires when I switch the
phone on and off:

public MainForm()
{
InitializeComponent();

SystemState _PhoneRoaming = new SystemState(
SystemProperty.PhoneRoaming);
_PhoneRoaming.Changed += new
ChangeEventHandler(_PhoneRoaming_Changed);

SystemState _PhoneHomeService = new
SystemState(SystemProperty.PhoneHomeService);
_PhoneHomeService.Changed += new
ChangeEventHandler(_PhoneHomeService_Changed);

SystemState _PhoneGprsCoverage = new
SystemState(SystemProperty.PhoneGprsCoverage);
_PhoneGprsCoverage.Changed += new
ChangeEventHandler(_PhoneGprsCoverage_Changed);

SystemState _PhoneNoService = new
SystemState(SystemProperty.PhoneNoService);
_PhoneNoService.Changed += new
ChangeEventHandler(_PhoneNoService_Changed);
}

void _PhoneNoService_Changed(object sender, ChangeEventArgs
args)
{
throw new NotImplementedException();
}

void _PhoneGprsCoverage_Changed(object sender, ChangeEventArgs
args)
{
throw new NotImplementedException();
}

void _PhoneHomeService_Changed(object sender, ChangeEventArgs
args)
{
throw new NotImplementedException();
}

void _PhoneRoaming_Changed(object sender, ChangeEventArgs
args)
{
throw new NotImplementedException();
}
 
Why would they change? I guess you need to define "off" but turning the
phone off doesn't take you out of service does it? Can't you still receive
calls? If you mean off as in you can't even get calls then the processor
itself is off so your app isn't running anyway.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
By turning off I mean switching off only the phone part ie.
flightmode. The app is still running.

A report will be written while in flightmode and stored. When the
phone gets connected again it will be sent. And maybe I need to
specify Roaming = false.

But none of these fires.
 
Back
Top