2020-08-05 14:06:55 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
2020-07-20 11:22:03 -07:00
|
|
|
|
using System.Collections.Generic;
|
2020-07-27 18:13:47 -07:00
|
|
|
|
using System.Collections.Specialized;
|
2020-08-05 14:06:55 -07:00
|
|
|
|
using PowerLauncher.ViewModel;
|
2020-07-20 11:22:03 -07:00
|
|
|
|
|
|
|
|
|
|
namespace PowerLauncher.Helper
|
|
|
|
|
|
{
|
2020-07-31 15:09:23 -07:00
|
|
|
|
public class ResultCollection : List<ResultViewModel>, INotifyCollectionChanged
|
2020-07-20 11:22:03 -07:00
|
|
|
|
{
|
2020-08-13 15:32:12 -07:00
|
|
|
|
public ResultCollection()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2020-07-27 18:13:47 -07:00
|
|
|
|
|
2020-08-13 15:32:12 -07:00
|
|
|
|
public ResultCollection(IEnumerable<ResultViewModel> rvm)
|
|
|
|
|
|
: base(rvm)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2020-07-27 18:13:47 -07:00
|
|
|
|
|
2020-08-11 10:24:56 -07:00
|
|
|
|
public event NotifyCollectionChangedEventHandler CollectionChanged;
|
2020-07-31 15:09:23 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Notify change in the List view items
|
2020-07-27 18:13:47 -07:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="e">The event argument.</param>
|
2020-07-31 15:09:23 -07:00
|
|
|
|
public void NotifyChanges()
|
2020-07-27 18:13:47 -07:00
|
|
|
|
{
|
2020-07-31 15:09:23 -07:00
|
|
|
|
CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
|
2020-07-27 18:13:47 -07:00
|
|
|
|
}
|
2020-07-20 11:22:03 -07:00
|
|
|
|
}
|
2020-08-05 14:06:55 -07:00
|
|
|
|
}
|