F
Franky
I try the exemple in the topic
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=389
but if a do a break point in the Event, the e.ID is nothing and the e.Link=0
too.
this is my code.
----
int NotifyID = 100;
Notification notTest;
NotificationEngine oEngine;
private void Form_Load(object sender, System.EventArgs e)
{
oEngine = new NotificationEngine(new Guid());
oEngine.NotificationSelect += new
NotificationEventHandler(Notif_Eng_NotificationSelect);
oEngine.NotificationDismiss += new
NotificationEventHandler(Not_Eng_NotificationDismiss);
oEngine.NotificationShow += new NotificationEventHandler(NotificationShow);
}
private void bntNotify_Click(object sender, System.EventArgs e)
{
notTest = new Notification();
notTest.ID = CntNot;
notTest.Title= "This is a Personal Notification!";
notTest.HTML = " <a CMD=10 href=\"CMD:10\" ID=\"CMD:377\">Hey man! What's
New?</a>";
notTest.Duration = 30;
notTest.Flags = NotificationFlags.ForceMessage;
oEngine.Add(notTest);
TxtNotifyResult.Text = "";
CntNot++;
}
private void Notif_Eng_NotificationSelect(object sender,
NotificationEventArgs e)
{ TxtNotifyResult.Text = "ID Select : " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
private void Not_Eng_NotificationDismiss(object sender,
NotificationEventArgs e)
{
TxtNotifyResult.Text = "ID dimmiss: " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
private void NotificationShow(object sender, NotificationEventArgs e)
{
TxtNotifyResult.Text = "ID show: " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
---
SO where i'm wrong??
________________________
Franky
(e-mail address removed)
http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=389
but if a do a break point in the Event, the e.ID is nothing and the e.Link=0
too.
this is my code.
----
int NotifyID = 100;
Notification notTest;
NotificationEngine oEngine;
private void Form_Load(object sender, System.EventArgs e)
{
oEngine = new NotificationEngine(new Guid());
oEngine.NotificationSelect += new
NotificationEventHandler(Notif_Eng_NotificationSelect);
oEngine.NotificationDismiss += new
NotificationEventHandler(Not_Eng_NotificationDismiss);
oEngine.NotificationShow += new NotificationEventHandler(NotificationShow);
}
private void bntNotify_Click(object sender, System.EventArgs e)
{
notTest = new Notification();
notTest.ID = CntNot;
notTest.Title= "This is a Personal Notification!";
notTest.HTML = " <a CMD=10 href=\"CMD:10\" ID=\"CMD:377\">Hey man! What's
New?</a>";
notTest.Duration = 30;
notTest.Flags = NotificationFlags.ForceMessage;
oEngine.Add(notTest);
TxtNotifyResult.Text = "";
CntNot++;
}
private void Notif_Eng_NotificationSelect(object sender,
NotificationEventArgs e)
{ TxtNotifyResult.Text = "ID Select : " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
private void Not_Eng_NotificationDismiss(object sender,
NotificationEventArgs e)
{
TxtNotifyResult.Text = "ID dimmiss: " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
private void NotificationShow(object sender, NotificationEventArgs e)
{
TxtNotifyResult.Text = "ID show: " + e.ID.ToString() + " Link: " +
e.Link.ToString();
}
---
SO where i'm wrong??
________________________
Franky
(e-mail address removed)