void SchedulerListEditorOnResourceDataSourceCreating(object sender, ResourceDataSourceCreatingEventArgs e) {
     var resourceListView = ((IModelListViewOptionsScheduler)View.Model).ResourceListView;
     if (resourceListView != null) {
         var collectionSourceBase = Application.CreateCollectionSource(Application.CreateObjectSpace(e.ResourceType), e.ResourceType, resourceListView.Id, false, CollectionSourceMode.Proxy);
         Application.CreateListView(resourceListView.Id, collectionSourceBase, true);
         e.DataSource = collectionSourceBase.Collection;
         e.Handled = true;
     }
 }
        void SchedulerListEditorOnResourceDataSourceCreating(object sender, ResourceDataSourceCreatingEventArgs e)
        {
            var resourceListView = ((IModelListViewOptionsScheduler)View.Model).ResourceListView;

            if (resourceListView != null)
            {
                var collectionSourceBase = Application.CreateCollectionSource(Application.CreateObjectSpace(e.ResourceType), e.ResourceType, resourceListView.Id, false, CollectionSourceMode.Proxy);
                Application.CreateListView(resourceListView.Id, collectionSourceBase, true);
                e.DataSource = collectionSourceBase.Collection;
                e.Handled    = true;
            }
        }
Ejemplo n.º 3
0
        void SchedulerListEditorOnResourceDataSourceCreating(object sender, ResourceDataSourceCreatingEventArgs e)
        {
            var resourceListView = ((IModelListViewSchedulerEx)View.Model.GetNode(PredefinedMap.SchedulerControl.ToString())).ResourceListView;

            if (resourceListView != null)
            {
                var collectionSourceBase = Application.CreateCollectionSource(Application.CreateObjectSpace(e.ResourceType), e.ResourceType, resourceListView.Id, false, CollectionSourceMode.Proxy);
                Application.CreateListView(resourceListView.Id, collectionSourceBase, true);
                e.DataSource = collectionSourceBase.Collection;
                e.Handled    = true;
            }
        }