本文整理汇总了C#中System.Windows.Data.ListCollectionView类的典型用法代码示例。如果您正苦于以下问题:C# ListCollectionView类的具体用法?C# ListCollectionView怎么用?C# ListCollectionView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ListCollectionView类属于System.Windows.Data命名空间,在下文中一共展示了ListCollectionView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: PositionOrganizationChartsVM
public PositionOrganizationChartsVM(PositionVM position, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentPosition = position;
PositionDataService = new PositionDataService(UnitOfWork);
PositionDataService.OrganizationChartAdded += OnOrganizationChartAdded;
PositionDataService.OrganizationChartRemoved += OnOrganizationChartRemoved;
OrganizationChartDataService = new OrganizationChartDataService(UnitOfWork);
OrganizationChartPositionDataService = new OrganizationChartPositionDataService(UnitOfWork);
var selectedVms = new ObservableCollection<OrganizationChartPositionVM>();
foreach (var positionOrganizationChart in PositionDataService.GetOrganizationCharts(position.Id))
{
selectedVms.Add(new OrganizationChartPositionVM(positionOrganizationChart, Access, OrganizationChartPositionDataService));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<OrganizationChartVM>();
foreach (var organizationChart in OrganizationChartDataService.GetActives())
{
allVms.Add(new OrganizationChartVM(organizationChart, Access, OrganizationChartDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:29,代码来源:PositionOrganizationChartsVM.cs
示例2: ProductDefectionsVM
public ProductDefectionsVM(ProductVM product, AccessType access):base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentProduct = product;
ProductDataService = new ProductDataService(UnitOfWork);
ProductDataService.DefectionAdded += OnDefectionAdded;
ProductDataService.DefectionRemoved += OnDefectionRemoved;
DefectionDataService = new DefectionDataService(UnitOfWork);
ProductDefectionDataService = new ProductDefectionDataService(UnitOfWork);
var selectedVms = new ObservableCollection<ProductDefectionVM>();
foreach (var productDefection in ProductDataService.GetDefections(product.Id))
{
selectedVms.Add(new ProductDefectionVM(productDefection, Access, ProductDefectionDataService, RelationDirection.Straight));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<DefectionVM>();
foreach (var defection in DefectionDataService.GetActives(SoheilEntityType.Products, CurrentProduct.Id))
{
allVms.Add(new DefectionVM(defection, Access, DefectionDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
IncludeRangeCommand = new Command(IncludeRange, CanIncludeRange);
ExcludeRangeCommand = new Command(ExcludeRange, CanExcludeRange);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:29,代码来源:ProductDefectionsVM.cs
示例3: ProcessorDetails
public ProcessorDetails(string code, params FileDetailViewModel[] fileDetails)
{
Code = code;
FileDetails = new ListCollectionView(fileDetails);
if(fileDetails.Length>0)
FileDetails.MoveCurrentToFirst();
}
开发者ID:MohanGurusamy,项目名称:AccountTransactionProcessor,代码行数:7,代码来源:ProcessorDetails.cs
示例4: EnumerableCollectionView
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
// Set up a ListCollectionView over the
// snapshot. We will delegate all CollectionView functionality
// to this view.
internal EnumerableCollectionView(IEnumerable source)
: base(source, -1)
{
_snapshot = new ObservableCollection<object>();
LoadSnapshotCore(source);
if (_snapshot.Count > 0)
{
SetCurrent(_snapshot[0], 0, 1);
}
else
{
SetCurrent(null, -1, 0);
}
// if the source doesn't raise collection change events, try to
// detect changes by polling the enumerator
_pollForChanges = !(source is INotifyCollectionChanged);
_view = new ListCollectionView(_snapshot);
INotifyCollectionChanged incc = _view as INotifyCollectionChanged;
incc.CollectionChanged += new NotifyCollectionChangedEventHandler(_OnViewChanged);
INotifyPropertyChanged ipc = _view as INotifyPropertyChanged;
ipc.PropertyChanged += new PropertyChangedEventHandler(_OnPropertyChanged);
_view.CurrentChanging += new CurrentChangingEventHandler(_OnCurrentChanging);
_view.CurrentChanged += new EventHandler(_OnCurrentChanged);
}
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:40,代码来源:EnumerableCollectionView.cs
示例5: FishboneNodeActionPlansVM
public FishboneNodeActionPlansVM(FishboneNodeVM defection, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentFishboneNode = defection;
FishboneNodeDataService = new FishboneNodeDataService(UnitOfWork);
FishboneNodeDataService.ActionPlanAdded += OnActionPlanAdded;
FishboneNodeDataService.ActionPlanRemoved += OnActionPlanRemoved;
ActionPlanDataService = new ActionPlanDataService(UnitOfWork);
var selectedVms = new ObservableCollection<ActionPlanFishboneVM>();
foreach (var productFishboneNode in FishboneNodeDataService.GetActionPlans(defection.Id))
{
selectedVms.Add(new ActionPlanFishboneVM(productFishboneNode, Access, RelationDirection.Reverse));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<ActionPlanVM>();
foreach (var actionPlan in ActionPlanDataService.GetActives())
{
allVms.Add(new ActionPlanVM(actionPlan, Access, ActionPlanDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:27,代码来源:FishBoneNodeActionPlansVM.cs
示例6: ActivityOperatorsVM
public ActivityOperatorsVM(ActivityVM activity, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentActivity = activity;
ActivityDataService = new ActivityDataService(UnitOfWork);
ActivityDataService.OperatorAdded += OnOperatorAdded;
ActivityDataService.OperatorRemoved += OnOperatorRemoved;
OperatorDataService = new OperatorDataService(UnitOfWork);
ActivityOperatorDataService = new ActivitySkillDataService(UnitOfWork);
var selectedVms = new ObservableCollection<ActivityOperatorVM>();
foreach (var activityOperator in ActivityDataService.GetOperators(activity.Id))
{
selectedVms.Add(new ActivityOperatorVM(activityOperator, Access, ActivityOperatorDataService, RelationDirection.Straight));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<OperatorVM>();
foreach (var opr in OperatorDataService.GetActives(SoheilEntityType.Activities, CurrentActivity.Id))
{
allVms.Add(new OperatorVM(opr, Access, OperatorDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:28,代码来源:ActivityOperatorsVM.cs
示例7: MainViewModel
/// <summary>
/// Initializes a new instance of the MainViewModel class.
/// </summary>
public MainViewModel()
{
LoadUrlCommand = new RelayCommand(OnLoadUrl);
ParseUrlCommand = new RelayCommand(OnParseUrl, () => !string.IsNullOrEmpty(URL));
ExportCommand = new RelayCommand(OnExport);
GetUrlsCommand = new RelayCommand(OnGetUrls);
_catalogObservableList = new ObservableCollection<CatalogNodeViewModel>();
CatalogCollectionView = new ListCollectionView(_catalogObservableList);
if (IsInDesignMode)
{
// Code runs in Blend --> create design time data.
URL = "http://hqfz.cnblgos.com";
CnBlogName = "hqfz";
var catalog = new CatalogNodeViewModel();
catalog.CurrentEntity.Title = "Catalog1";
var article = new ArticleViewModel();
article.CurrentEntity.Title = "Article1";
catalog.AddArticle(article);
_catalogObservableList.Add(catalog);
}
else
{
// Code runs "for real"
URL = "http://www.cnblogs.com/artech/default.html?page=1";
CnBlogName = "artech";
}
}
开发者ID:huoxudong125,项目名称:HQF.BlogExporter,代码行数:33,代码来源:MainViewModel.cs
示例8: EnumPropertyItem
public EnumPropertyItem(PropertyDescriptor property, object instance)
: base(property, instance)
{
EnumValues = new ListCollectionView(Enum.GetValues(property.PropertyType));
EnumValues.MoveCurrentTo(property.GetValue(instance));
EnumValues.CurrentChanged += OnEnumValueChanged;
}
开发者ID:bdurrani,项目名称:WPF-Inspector,代码行数:7,代码来源:EnumPropertyItem.cs
示例9: CatalogNodeViewModel
public CatalogNodeViewModel(Catalog catalog)
{
CurrentEntity = catalog;
_articlesObservableList = new ObservableCollection<ArticleViewModel>();
ArticlesCollectionView = new ListCollectionView(_articlesObservableList);
}
开发者ID:huoxudong125,项目名称:HQF.BlogExporter,代码行数:7,代码来源:CatalogNodeViewModel.cs
示例10: StatementVm
public StatementVm(List<StatementDataModel> statementList, IEnumerable<Signal> avalibleSignals)
{
IS_SAVED = false;
_avalibleSignals = avalibleSignals;
_statementValuesList = statementList;
//var statementvalue = new StatementDataModel(_avalibleSignals, StatementDataModelType.RegularStatement);
//statementvalue.IsAlgebraOperatorVisible = false;
//statementvalue.PropertyChanged += StatementValueField_Changed;
//_statementValuesList.Add(statementvalue);
ObservableStatements = new ListCollectionView(_statementValuesList);
ObservableStatements.CollectionChanged += ObservableStatements_CollectionChanged;
_addRegularExpressionCommand = new DelegateCommand<string>(
(s) => { AddRegularExpression(); }, //Execute
(s) => { return true; } //CanExecute
);
_addTimeExpressionCommand = new DelegateCommand<string>(
(s) => { AddTimeExpression(); }, //Execute
(s) => { return true; } //CanExecute
);
_removeExpressionCommand = new DelegateCommand<string>(
(s) => { RemoveRow(); }, //Execute
(s) => { return true; } //CanExecute
);
_saveStatementCommand = new DelegateCommand<string>(
(s) => { Save(); }, //Execute
(s) => { return IsDataValid(); } //CanExecute
);
}
开发者ID:Rekve,项目名称:Logic-Analyzer-Triggering,代码行数:34,代码来源:StatementVm3.cs
示例11: LookupComboboxBindingWindow_Loaded
private void LookupComboboxBindingWindow_Loaded(object sender, RoutedEventArgs e)
{
IQueryable<Order> query = from o in db.Orders
//where o.OrderDate >= System.Convert.ToDateTime("1/1/2009")
orderby o.OrderDate descending, o.Customer.LastName
select o;
this.OrderData = new OrdersCollection(query, db);
// Make sure the lookup list is pulled from the same ObjectContext
// (OMSEntities) that the order query uses above.
// Also have to make sure you return a list of Customer entites and not a
// projection of just a few fields otherwise the binding won't work).
IQueryable<Customer> customerList = from c in db.Customers
where c.Orders.Count > 0
orderby c.LastName, c.FirstName
select c;
CollectionViewSource orderSource = (CollectionViewSource)this.FindResource("OrdersSource");
orderSource.Source = this.OrderData;
CollectionViewSource customerSource = (CollectionViewSource)this.FindResource("CustomerLookup");
customerSource.Source = customerList; //.ToArray(); //.ToList(); // A simple list is OK here since we are not editing Customers
this.View = (ListCollectionView)orderSource.View;
}
开发者ID:mac10688,项目名称:PublicWorkspace,代码行数:26,代码来源:LookupComboboxBinding.xaml.cs
示例12: UserPositionsVM
public UserPositionsVM(UserVM user, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentUser = user;
UserDataService = new UserDataService(UnitOfWork);
PositionDataService = new PositionDataService(UnitOfWork);
AccessRuleDataService = new AccessRuleDataService(UnitOfWork);
UserDataService.PositionAdded += OnPositionAdded;
UserDataService.PositionRemoved += OnPositionRemoved;
var selectedVms = new ObservableCollection<UserPositionVM>();
foreach (var userPosition in UserDataService.GetPositions(user.Id))
{
selectedVms.Add(new UserPositionVM(userPosition, Access, RelationDirection.Straight));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<PositionVM>();
foreach (var position in PositionDataService.GetActives(SoheilEntityType.Users, CurrentUser.Id))
{
allVms.Add(new PositionVM(position, Access, PositionDataService));
}
AllItems = new ListCollectionView(allVms);
//AllItems = new ListCollectionView(PositionDataService.GetActives());
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:30,代码来源:UserPositionsVM.cs
示例13: Window1_Loaded
private void Window1_Loaded(object sender, RoutedEventArgs e)
{
IQueryable<Order> query = from o in db.Orders.Include("OrderDetails")
//where o.OrderDate >= System.Convert.ToDateTime("1/1/2009")
orderby o.OrderDate descending, o.Customer.LastName
select o;
this.OrderData = new OrdersCollection(query, db);
IQueryable<Customer> customerList = from c in db.Customers
where c.Orders.Count > 0
orderby c.LastName, c.FirstName
select c;
IQueryable<Product> productList = from p in db.Products
orderby p.Name
select p;
this.MasterViewSource = (CollectionViewSource)this.FindResource("MasterViewSource");
this.DetailViewSource = (CollectionViewSource)this.FindResource("DetailsViewSource");
this.MasterViewSource.Source = this.OrderData;
CollectionViewSource customerSource = (CollectionViewSource)this.FindResource("CustomerLookup");
customerSource.Source = customerList.ToList(); // A simple list is OK here since we are not editing Customers
CollectionViewSource productSource = (CollectionViewSource)this.FindResource("ProductLookup");
productSource.Source = productList.ToList(); // A simple list is OK here since we are not editing Products
this.MasterView = (ListCollectionView)this.MasterViewSource.View;
MasterView.CurrentChanged += new EventHandler(MasterView_CurrentChanged);
this.DetailsView = (BindingListCollectionView)this.DetailViewSource.View;
}
开发者ID:mac10688,项目名称:PublicWorkspace,代码行数:33,代码来源:FormattingAndValidation.xaml.cs
示例14: PositionUsersVM
public PositionUsersVM(PositionVM position, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentPosition = position;
PositionDataService = new PositionDataService(UnitOfWork);
PositionDataService.UserAdded += OnUserAdded;
PositionDataService.UserRemoved += OnUserRemoved;
UserDataService = new UserDataService(UnitOfWork);
var selectedVms = new ObservableCollection<UserPositionVM>();
foreach (var positionUser in PositionDataService.GetUsers(position.Id))
{
selectedVms.Add(new UserPositionVM(positionUser, Access, RelationDirection.Reverse));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<UserVM>();
foreach (var user in UserDataService.GetActives(SoheilEntityType.Positions, CurrentPosition.Id))
{
allVms.Add(new UserVM(user, Access, UserDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:28,代码来源:PositionUsersVM.cs
示例15: ImageSearchSettingsViewModel
public ImageSearchSettingsViewModel() : base("Image Search Plugin", new Uri(typeof(ImageSearchSettingsView).FullName, UriKind.Relative))
{
DirectoryPickerCommand = new Command(() =>
{
DirectoryPickerView directoryPicker = new DirectoryPickerView();
DirectoryPickerViewModel vm = (DirectoryPickerViewModel)directoryPicker.DataContext;
vm.SelectedPath = FixedDownloadPath;
if (directoryPicker.ShowDialog() == true)
{
FixedDownloadPath = vm.SelectedPath;
MiscUtils.insertIntoHistoryCollection(FixedDownloadPathHistory, FixedDownloadPath);
}
});
ImageSaveMode = new ListCollectionView(Enum.GetValues(typeof(MediaViewer.Infrastructure.Constants.SaveLocation)));
ImageSaveMode.MoveCurrentTo(ImageSearchPlugin.Properties.Settings.Default.ImageSaveMode);
if (String.IsNullOrEmpty(ImageSearchPlugin.Properties.Settings.Default.FixedDownloadPath))
{
FixedDownloadPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
}
else
{
FixedDownloadPath = ImageSearchPlugin.Properties.Settings.Default.FixedDownloadPath;
}
FixedDownloadPathHistory = ImageSearchPlugin.Properties.Settings.Default.FixedDownloadPathHistory;
}
开发者ID:iejeecee,项目名称:mediaviewer,代码行数:30,代码来源:ImageSearchSettingsViewModel.cs
示例16: NewTabViewModel
public NewTabViewModel(ChatClient client)
{
this.client = client;
StartChatCommand = new RelayCommand(_ =>
{
StartChat.SafeInvoke(this, new StartChatEventArgs((contactsView.CurrentItem as ContactViewModel).Contact));
});
AddFriendCommand = new RelayCommand(_ =>
{
if (AddFriendText.Length > 0)
client.AddFriend(AddFriendText);
AddFriendText = "";
}, _ =>
{
return AddFriendText.Length > 0;
});
contactsView = new ListCollectionView(contactVMs);
contactsView.CustomSort = new ContactComparer();
client.UserDetailsChange += OnUserDetailsChange;
client.GroupDetailsChange += OnGroupDetailsChange;
UpdateContacts(client.Friends, Enumerable.Empty<IUser>());
UpdateContacts(client.Groups, Enumerable.Empty<IGroup>());
}
开发者ID:npcook,项目名称:infinichat-client,代码行数:27,代码来源:NewTabViewModel.cs
示例17: ActionPlanFishbonesVM
public ActionPlanFishbonesVM(ActionPlanVM actionPlan, AccessType access)
: base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentActionPlan = actionPlan;
ActionPlanDataService = new ActionPlanDataService(UnitOfWork);
ActionPlanDataService.FishboneNodeAdded += OnFishboneNodeAdded;
ActionPlanDataService.FishboneNodeRemoved += OnFishboneNodeRemoved;
FishboneActionPlanDataService = new FishboneActionPlanDataService(UnitOfWork);
FishboneNodeDataService = new FishboneNodeDataService(UnitOfWork);
var selectedVms = new ObservableCollection<ActionPlanFishboneVM>();
foreach (var fishboneNodeActionPlan in ActionPlanDataService.GetFishboneNodes(actionPlan.Id))
{
selectedVms.Add(new ActionPlanFishboneVM(fishboneNodeActionPlan,access,RelationDirection.Straight));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<FishboneNodeVM>();
foreach (var fishboneNode in FishboneNodeDataService.GetActives())
{
allVms.Add(new FishboneNodeVM(fishboneNode, Access, FishboneNodeDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:28,代码来源:ActionPlanFishbonesVM.cs
示例18: VideoSettingsViewModel
public VideoSettingsViewModel() :
base("Video", new Uri(typeof(VideoSettingsView).FullName, UriKind.Relative))
{
DirectoryPickerCommand = new Command(() =>
{
DirectoryPickerView directoryPicker = new DirectoryPickerView();
DirectoryPickerViewModel vm = (DirectoryPickerViewModel)directoryPicker.DataContext;
vm.SelectedPath = VideoScreenShotLocation;
vm.PathHistory = VideoScreenShotLocationHistory;
if (directoryPicker.ShowDialog() == true)
{
VideoScreenShotLocation = vm.SelectedPath;
}
});
VideoScreenShotLocationHistory = Settings.Default.VideoScreenShotLocationHistory;
if (String.IsNullOrEmpty(Settings.Default.VideoScreenShotLocation))
{
Settings.Default.VideoScreenShotLocation = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
}
VideoScreenShotSaveMode = new ListCollectionView(Enum.GetValues(typeof(Infrastructure.Constants.SaveLocation)));
VideoScreenShotSaveMode.MoveCurrentTo(Settings.Default.VideoScreenShotSaveMode);
VideoScreenShotLocation = Settings.Default.VideoScreenShotLocation;
VideoScreenShotTimeOffset = Settings.Default.VideoScreenShotTimeOffset;
MinNrBufferedPackets = Settings.Default.VideoMinBufferedPackets;
StepDurationSeconds = Settings.Default.VideoStepDurationSeconds;
MaxNrBufferedPackets = 1000;
}
开发者ID:iejeecee,项目名称:mediaviewer,代码行数:33,代码来源:VideoSettingsViewModel.cs
示例19: ChangeCarParentDialog
public ChangeCarParentDialog(CarObject car) {
InitializeComponent();
DataContext = this;
Buttons = new[] {
OkButton,
CreateExtraDialogButton(ControlsStrings.CarParent_MakeIndependent, () => {
Car.ParentId = null;
Close();
}),
CancelButton
};
Car = car;
Filter = car.Brand == null ? "" : @"brand:" + car.Brand;
CarsListView = new ListCollectionView(CarsManager.Instance.LoadedOnly.Where(x => x.ParentId == null && x.Id != Car.Id).ToList()) {
CustomSort = this
};
UpdateFilter();
if (car.Parent == null) {
CarsListView.MoveCurrentToPosition(0);
} else {
CarsListView.MoveCurrentTo(car.Parent);
}
Closing += CarParentEditor_Closing;
}
开发者ID:gro-ove,项目名称:actools,代码行数:29,代码来源:ChangeCarParentDialog.xaml.cs
示例20: OperatorActivitiesVM
public OperatorActivitiesVM(OperatorVM opr, AccessType access) : base(access)
{
UnitOfWork = new SoheilEdmContext();
CurrentOperator = opr;
OperatorDataService = new OperatorDataService(UnitOfWork);
OperatorDataService.ActivityAdded += OnActivityAdded;
OperatorDataService.ActivityRemoved += OnActivityRemoved;
ActivityDataService = new ActivityDataService(UnitOfWork);
ActivityOperatorDataService = new ActivitySkillDataService(UnitOfWork);
ActivityGroupDataService = new ActivityGroupDataService(UnitOfWork);
var selectedVms = new ObservableCollection<ActivityOperatorVM>();
foreach (var generalActivitySkill in OperatorDataService.GetActivities(opr.Id))
{
selectedVms.Add(new ActivityOperatorVM(generalActivitySkill, Access, ActivityOperatorDataService, RelationDirection.Reverse));
}
SelectedItems = new ListCollectionView(selectedVms);
var allVms = new ObservableCollection<ActivityVM>();
foreach (var activity in ActivityDataService.GetActives()
.Where(activity => !selectedVms.Any(activityOperator => activityOperator.ActivityId == activity.Id)))
{
allVms.Add(new ActivityVM(activity, Access, ActivityDataService, ActivityGroupDataService));
}
AllItems = new ListCollectionView(allVms);
IncludeCommand = new Command(Include, CanInclude);
ExcludeCommand = new Command(Exclude, CanExclude);
}
开发者ID:T1Easyware,项目名称:Soheil,代码行数:30,代码来源:OperatorActivitiesVM.cs
注:本文中的System.Windows.Data.ListCollectionView类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论