A
Andrew Martin
Having looked through all the posts here and on OpenNETCF forums, I
seem to have similar issues to many of the posters. This is how I
setup the call:
This is how I set up the notEngine:
OpenNETCF.GuidEx guidEx = OpenNETCF.GuidEx.NewGuid();
notEngine = new NotificationEngine(new Guid(guidEx.ToByteArray()));
This is the html string I use for the notification:
// DEBUG QUICKWATCH
// htmlText
// " <a CMD=1 href=\"CMD:1\">Downloading updated CAB from server </a>"
// string
This is how I add my notification:
Notification not = new Notification();
not.Duration = duration; // 10
not.Flags = notFlags; // ForceMessage
not.HTML = html; // see above
not.ID = Convert.ToInt32(notID); // 1
not.Title = "Mobile Collections Update"; // ...
not.Priority = Priority.Inform; // Inform
notEngine.Add(not);
These are my issues:
1. I register for both events of these events, but only
notEngine_NotificationDismiss is fired:
this.notEngine.NotificationSelect += new
NotificationEventHandler(notEngine_NotificationSelect);
this.notEngine.NotificationDismiss += new
NotificationEventHandler(notEngine_NotificationDismiss);
2. In notEngine_NotificationDismiss, the ID value is 0, not
private void notEngine_NotificationDismiss(object sender,
NotificationEventArgs args)
{
int test = args.ID;
{
If you like, I can email my code. I'd love to get a good C# example
out there when I get this resolved.
Thanks for any ideas.
-a
seem to have similar issues to many of the posters. This is how I
setup the call:
This is how I set up the notEngine:
OpenNETCF.GuidEx guidEx = OpenNETCF.GuidEx.NewGuid();
notEngine = new NotificationEngine(new Guid(guidEx.ToByteArray()));
This is the html string I use for the notification:
// DEBUG QUICKWATCH
// htmlText
// " <a CMD=1 href=\"CMD:1\">Downloading updated CAB from server </a>"
// string
This is how I add my notification:
Notification not = new Notification();
not.Duration = duration; // 10
not.Flags = notFlags; // ForceMessage
not.HTML = html; // see above
not.ID = Convert.ToInt32(notID); // 1
not.Title = "Mobile Collections Update"; // ...
not.Priority = Priority.Inform; // Inform
notEngine.Add(not);
These are my issues:
1. I register for both events of these events, but only
notEngine_NotificationDismiss is fired:
this.notEngine.NotificationSelect += new
NotificationEventHandler(notEngine_NotificationSelect);
this.notEngine.NotificationDismiss += new
NotificationEventHandler(notEngine_NotificationDismiss);
2. In notEngine_NotificationDismiss, the ID value is 0, not
private void notEngine_NotificationDismiss(object sender,
NotificationEventArgs args)
{
int test = args.ID;
{
If you like, I can email my code. I'd love to get a good C# example
out there when I get this resolved.
Thanks for any ideas.
-a