void ApplicationOnListViewCreating(object sender, ListViewCreatingEventArgs args) { if (!(args.View is XpandListView)) { args.View = ViewFactory.CreateListView((XafApplication)sender, args.ViewID, args.CollectionSource, args.IsRoot); } }
private void Application_ListViewCreating(Object sender, ListViewCreatingEventArgs e) { if ((e.CollectionSource.ObjectTypeInfo.Type == typeof(Welcome)) && (e.CollectionSource.ObjectSpace is NonPersistentObjectSpace)) { ((NonPersistentObjectSpace)e.CollectionSource.ObjectSpace).ObjectsGetting += WelcomeObjectSpace_ObjectsGetting; } }
private void Application_ListViewCreating(object sender, ListViewCreatingEventArgs e) { if (e.CollectionSource.ObjectTypeInfo.Type == typeof(NonPersistentObject) && (e.CollectionSource.ObjectSpace is NonPersistentObjectSpace)) { ((NonPersistentObjectSpace)e.CollectionSource.ObjectSpace).ObjectsGetting += NonPersistentObjectsController_ObjectsGetting; } }
protected override void OnListViewCreating(ListViewCreatingEventArgs args) { base.OnListViewCreating(args); if (args.View == null) { args.View = defaultListView; } }
void OnListViewCreating(object sender, ListViewCreatingEventArgs args) { args.View = ViewFactory.CreateListView(this, args.ViewID, args.CollectionSource, args.IsRoot); }
void ApplicationOnListViewCreating(object sender, ListViewCreatingEventArgs args) { if (!(args.View is XpandListView)) args.View = ViewFactory.CreateListView((XafApplication) sender, args.ViewID, args.CollectionSource, args.IsRoot); }
private void SimpleProjectManagerWindowsFormsApplication_ListViewCreating(object sender, ListViewCreatingEventArgs e) { //var view = FindModelView(e.ViewID) as IModelListView; //view.EditorType = typeof (GridAccessibleDataRow); }
private void Application_ListViewCreating(object sender, ListViewCreatingEventArgs e) { }