if ((appList & (int)NotificationDisplayApplist.Active) != 0)
{
Notification.ActiveStyle active = new Notification.ActiveStyle();
- bool isExisted = false;
bool autoRemove;
string path, text;
SafeAppControlHandle appcontrol = null;
button.Text = text;
button.Index = (ButtonIndex)i;
active.AddButtonAction(button);
- isExisted = true;
}
}
Interop.Notification.GetImage(notification.Handle, NotificationImage.Background, out path);
if (string.IsNullOrEmpty(path) == false)
{
- isExisted = true;
active.BackgroundImage = path;
}
Interop.Notification.GetPlaceHolderLength(notification.Handle, out holderLength);
reply.ReplyMax = holderLength;
- isExisted = true;
-
try
{
SafeBundleHandle bundleHandle;
active.ReplyAction = reply;
}
- if (isExisted)
- {
- notification.AddStyle(active);
- }
+ notification.AddStyle(active);
}
}
}