-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring & final adjustment of RDV
- Loading branch information
Showing
5 changed files
with
74 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 2 additions & 34 deletions
36
sources/RevitDBExplorer/UIComponents/CommandAndControl/CommandAndControlVM.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,19 @@ | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows.Controls; | ||
using Autodesk.Revit.DB; | ||
using RevitDBExplorer.Domain; | ||
using RevitDBExplorer.UIComponents.Trees.Base.Items; | ||
using RevitDBExplorer.WPF; | ||
using Binding = System.Windows.Data.Binding; | ||
using RevitDBExplorer.WPF; | ||
|
||
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md | ||
|
||
namespace RevitDBExplorer.UIComponents.CommandAndControl | ||
{ | ||
internal class CommandAndControlVM : BaseViewModel | ||
{ | ||
private GroupTreeItem selectedGroup; | ||
private int itemsCount; | ||
|
||
|
||
public int ItemsCount | ||
{ | ||
get | ||
{ | ||
return itemsCount; | ||
} | ||
set | ||
{ | ||
itemsCount = value; | ||
OnPropertyChanged(); | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
public CommandAndControlVM() | ||
{ | ||
|
||
} | ||
|
||
|
||
public async Task SetInput(GroupTreeItem groupTreeItemVM) | ||
{ | ||
selectedGroup = groupTreeItemVM; | ||
ItemsCount = selectedGroup.GetAllSnoopableObjects().Select(x => x.Object).OfType<Element>().Count(); | ||
var elements = selectedGroup.GetAllSnoopableObjects().Select(x => x.Object).OfType<Element>().Take(100).ToArray(); | ||
|
||
|
||
} | ||
} | ||
} |
Oops, something went wrong.