Пример #1
0
        protected override void RemoveWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (dgResults.SelectedItems.Count == 0 || dgResults.SelectedItem == null)
            {
                return;
            }

            var notification = dgResults.SelectedItem as Notification;

            if (notification != null)
            {
                if (NotificationsService.ChangeNotifiable(notification))
                {
                    ResetFields();
                    TryToLoad();
                }
                else
                {
                    Global.OpFailed(this);
                }
            }

            OnReloading = false;
        }