Skip to content

Commit ca8149b

Browse files
committed
fix a few mistakes from the past
1 parent e987343 commit ca8149b

File tree

9 files changed

+10
-13
lines changed

9 files changed

+10
-13
lines changed

RevitDBExplorer.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
readme.md = readme.md
1111
documentation\revit-database-querying.md = documentation\revit-database-querying.md
1212
documentation\revit-database-scripting.md = documentation\revit-database-scripting.md
13+
documentation\revit-database-visualization.md = documentation\revit-database-visualization.md
1314
RevitDBExplorer.addin = RevitDBExplorer.addin
1415
EndProjectSection
1516
EndProject
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Revit database visualization (RDV)

sources/RevitDBExplorer/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
<TextBlock Text="S" Foreground="#ED1A24" FontWeight="Heavy" FontFamily="Arial" FontSize="15"/>
290290
</Button>
291291

292-
<Button Grid.Column="3" Style="{StaticResource ToolButton}" ToolTip="RDBE Configuration" Click="ConfigurationButton_Click" >
292+
<Button Grid.Column="3" Style="{StaticResource ToolButton}" ToolTip="Revit database explorer configuration" Click="ConfigurationButton_Click" >
293293
<Path Style="{StaticResource IconConfig}" Opacity="0.91" />
294294
</Button>
295295
</StackPanel>

sources/RevitDBExplorer/MainWindow.xaml.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ public MainWindow()
159159
}
160160

161161

162-
163162
private async Task InitializeAsync()
164163
{
165164
(IsNewVerAvailable, NewVersionLink) = await VersionChecker.CheckIfNewVersionIsAvailable();
@@ -335,7 +334,7 @@ private void GlobalKeyboardHook_KeyDown(object sender, System.Windows.Forms.KeyE
335334
var snoopableObjectTreeItem = selectedItems.OfType<SnoopableObjectTreeItem>().FirstOrDefault();
336335
if (listItemForMember != null)
337336
{
338-
CHMService.OpenCHM(listItemForMember[0]);
337+
CHMService.OpenCHM(listItemForMember[0] ?? listItemForMember[1]);
339338
return;
340339
}
341340
if (snoopableObjectTreeItem != null)
@@ -351,7 +350,6 @@ private void GlobalKeyboardHook_KeyDown(object sender, System.Windows.Forms.KeyE
351350
}
352351

353352

354-
355353
private DispatcherTimer window_SizeChanged_Debouncer;
356354
private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
357355
{
@@ -383,9 +381,6 @@ protected virtual void OnPropertyChanged([CallerMemberName] String propertyName
383381
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
384382
}
385383

386-
387384
#endregion
388-
389-
390385
}
391386
}

sources/RevitDBExplorer/UIComponents/List/ListVM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private void OpenCHM(object obj)
352352
{
353353
if (obj is ListItemForMember listItem)
354354
{
355-
CHMService.OpenCHM(listItem[0]);
355+
CHMService.OpenCHM(listItem[0] ?? listItem[1]);
356356
}
357357
}
358358
private void SnoopParamInNewWindow(object obj)

sources/RevitDBExplorer/UIComponents/QueryEditor/QueryEditorView.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<Path Style="{StaticResource IconFavorite}" Width="18"/>
5050
</Button>
5151

52-
<Button Grid.Column="2" BorderBrush="Transparent" Margin="2 0 0 0" MinWidth="21" MinHeight="21" Padding="2 0 1 1" ToolTip="Generate C# code for this SELECT query (RDS)" Background="Transparent" Command="{Binding OpenScriptingWithQueryCommand}">
52+
<Button Grid.Column="2" BorderBrush="Transparent" Margin="2 0 0 0" MinWidth="21" MinHeight="21" Padding="2 0 1 1" ToolTip="RDS: Generate C# code for this query" Background="Transparent" Command="{Binding OpenScriptingWithQueryCommand}">
5353
<Path Style="{StaticResource IconQuery}" Width="12" />
5454
</Button>
5555
</Grid>

sources/RevitDBExplorer/UIComponents/Workspaces/WorkspaceViewModel.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ internal class WorkspaceViewModel : BaseViewModel, IAmWindowOpener
2626
private RightView rightView;
2727
private bool isActive;
2828
private string title;
29+
private string tooltip;
2930
private GridLength firstColumnWidth;
3031

3132

@@ -74,11 +75,11 @@ public string ToolTip
7475
{
7576
get
7677
{
77-
return title;
78+
return tooltip;
7879
}
7980
set
8081
{
81-
title = value;
82+
tooltip = value;
8283
OnPropertyChanged();
8384
}
8485
}

sources/RevitDBExplorer/UIComponents/Workspaces/WorkspacesViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
4-
using System.Diagnostics.Tracing;
54
using System.Linq;
65
using System.Windows;
76
using System.Windows.Input;

sources/RevitDBExplorer/Utils/ApplicationModifyTab.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace RevitDBExplorer.Utils
55
{
6-
public static class ApplicationModifyTab
6+
internal static class ApplicationModifyTab
77
{
88
private static RibbonPanel ribbonPanel;
99

0 commit comments

Comments
 (0)