This is a migrated thread and some comments may be shown as answers.

Alert blocks the program when hiding

1 Answer 31 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Gianfranco
Top achievements
Rank 1
Gianfranco asked on 02 May 2018, 02:41 PM

Hi

I need to display some alerts (4-5 at a time);
The alerts are displayed correctly, only that during the hiding phase it blocks the whole program.
here is the code (example):

private void DisplayToastForPinUp(int userId)
        {

            RadDesktopAlertManager manager = new RadDesktopAlertManager();
            manager.CloseAllAlerts();
            manager.AlertsReorderAnimationDuration = 1000;
            var pinups = pinUpService.GetAllByUserIdAndDateToRemembre(userId,DateTime.Now);
            foreach (PinUp pinUp in pinups)
            {
                var alert = new RadDesktopAlert();
                alert.Header = "Post: " + pinUp.Title.Trim(); ;
                alert.Content = pinUp.MemoText;
                alert.ShowDuration = 3000;
                manager.ShowAlert(alert);
            }
        }

 

how can I solve it?
thank you

 

 

 

1 Answer, 1 is accepted

Sort by
0
Gianfranco
Top achievements
Rank 1
answered on 02 May 2018, 03:01 PM
I have to update the post
the problem is present if I run my program from visual studio 2015.
while, if I compile and execute it, everything works correctly.
I do not understand..
however, for now it's okay.

Thanks again
Tags
DesktopAlert
Asked by
Gianfranco
Top achievements
Rank 1
Answers by
Gianfranco
Top achievements
Rank 1
Share this question
or