Пример #1
0
        /// <summary>
        ///
        /// </summary>
        private void UpdateUserList()
        {
            try
            {
                AutoFXUsers.Clear();
                AutoFXUsers = _helper.BuildUsersList();
                AutoFXUsers = AutoFXUsers.OrderBy(x => x.ID).ToList();
                AutoFXUsers.Reverse();

                FilteredUsersCollection.Clear();
                this._currentDispatcher.Invoke(DispatcherPriority.Normal, (Action)(() =>
                {
                    foreach (var user in AutoFXUsers)
                    {
                        this.FilteredUsersCollection.Add(user);
                    }
                    this.TotalClients = this.FilteredUsersCollection.Count;
                    _mailingHelper.UsersList = AutoFXUsers;
                }));
            }
            catch (Exception exception)
            {
                Logger.Error(exception, OType.FullName, "UpdateUserList");
            }
        }
        /// <summary>
        ///
        /// </summary>
        private void UpdateUserList()
        {
            try
            {
                UpDownSignalsUsersUsers.Clear();
                UpDownSignalsUsersUsers = _helper.BuildUsersList();
                UpDownSignalsUsersUsers = UpDownSignalsUsersUsers.OrderBy(x => x.ID).ToList();
                UpDownSignalsUsersUsers.Reverse();

                FilteredUsersCollection.Clear();
                this._currentDispatcher.Invoke(DispatcherPriority.Normal, (Action)(() =>
                {
                    foreach (var user in UpDownSignalsUsersUsers)
                    {
                        this.FilteredUsersCollection.Add(user);
                    }
                }));
            }
            catch (Exception exception)
            {
                Logger.Error(exception, OType.FullName, "UpdateUserList");
            }
        }