Skip to content

Commit

Permalink
Merge branch 'master' into pr/14106
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart committed Jul 19, 2023
2 parents bda2f98 + 4228417 commit 3d73767
Show file tree
Hide file tree
Showing 44 changed files with 206 additions and 79 deletions.
Empty file.
Binary file added extern/prism/Microsoft.Practices.Prism.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
<Reference Include="Microsoft.Practices.Prism">
<HintPath>..\..\extern\prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DynamoCoreWpf\DynamoCoreWpf.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,27 @@ private static string CreateHelp(OpenNodeAnnotationEventArgs e)
{
sb.AppendLine("<br>");
sb.AppendLine($"<strong>{"Message"}</strong>");
sb.AppendLine($"<p>{GetNthRowFromStringSplit(e.NodeInfos.ElementAt(i).Message, 0)}</p>");

var help = e.NodeInfos.ElementAt(i).Message.Split(new string[] {". "}, StringSplitOptions.None);
var html = help[1].Split(new string[] {"href="}, StringSplitOptions.None)[1];
var helpHtml =
DocumentationBrowserUtils.GetContentFromEmbeddedResource($"{RESOURCE_PREFIX + html}");
var message = e.NodeInfos.ElementAt(i).Message;

sb.AppendLine(helpHtml);
if (message.Contains("href="))
{
sb.AppendLine($"<p>{GetNthRowFromStringSplit(e.NodeInfos.ElementAt(i).Message, 0)}</p>");

var help = e.NodeInfos.ElementAt(i).Message.Split(new string[] {". "}, StringSplitOptions.None);
var html = help[1].Split(new string[] {"href="}, StringSplitOptions.None)[1];
var helpHtml =
DocumentationBrowserUtils.GetContentFromEmbeddedResource($"{RESOURCE_PREFIX + html}");

sb.AppendLine(helpHtml);
}
else
{
foreach(var line in message.Split(new string[] { "\r\n" }, StringSplitOptions.None))
{
sb.AppendLine($"<p>{line}</p>");
}
}
}
catch (Exception ex)
{
Expand Down
6 changes: 5 additions & 1 deletion src/DynamoCoreWpf/Controls/ShortcutToolbar.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
using Dynamo.UI.Commands;
using Dynamo.ViewModels;
using Dynamo.Wpf.ViewModels.Core;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif
using Greg.AuthProviders;
using System.Linq;
using System.Windows;
Expand Down
6 changes: 5 additions & 1 deletion src/DynamoCoreWpf/Controls/StartPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
using Dynamo.Utilities;
using Dynamo.ViewModels;
using Dynamo.Wpf.Properties;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.UI.Controls
{
Expand Down
11 changes: 5 additions & 6 deletions src/DynamoCoreWpf/DynamoCoreWpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@
<None Remove="Views\Menu\TrustedPathView.xaml" />
<None Remove="Views\GuidedTour\HtmlPages\Resources\ConnectTheNode.gif" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0-windows' ">
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
<Reference Include="System.Configuration" />
<Reference Include="PresentationCore" />
Expand Down Expand Up @@ -154,11 +151,13 @@
<PackageReference Include="SharpDX.Direct3D9" Version="4.2.0" />
<PackageReference Include="SharpDX.DXGI" Version="4.2.0" />
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" />
<Reference Include="Dynamo.Microsoft.Xaml.Behaviors, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Dynamo.Microsoft.Xaml.Behaviors">
<HintPath>..\..\extern\Microsoft.Xaml.Behaviors\$(TargetFramework)\Dynamo.Microsoft.Xaml.Behaviors.dll</HintPath>
</Reference>
<PackageReference Include="Prism.Core" Version="8.1.97" />
<PackageReference Include="Prism.Core" Version="8.1.97" Condition=" '$(TargetFramework)' != 'net48' "/>
<Reference Include="Microsoft.Practices.Prism" Condition=" '$(TargetFramework)' == 'net48' ">
<HintPath>..\..\extern\prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
<PackageReference Include="DotNetProjects.Extended.Wpf.Toolkit" Version="5.0.103" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions src/DynamoCoreWpf/UI/Prompts/PortPropertiesEditPrompt.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using System.Linq;
using Dynamo.Controls;
using Dynamo.Utilities;
using Dynamo.Wpf.Utilities;
using DynamoUtilities;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
Expand Down
2 changes: 1 addition & 1 deletion src/DynamoCoreWpf/Utilities/DelegateCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Windows.Input;

namespace Dynamo.UI.Commands
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using System;
using Dynamo.Graph.Nodes.CustomNodes;
using Dynamo.Wpf.ViewModels;
#if NETFRAMEWORK
using Microsoft.Practices.Prism.Commands;
#else
using Prism.Commands;
#endif
using DelegateCommand = Dynamo.UI.Commands.DelegateCommand;

namespace Dynamo.ViewModels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;

using Dynamo.PackageManager;
using Dynamo.Utilities;
using Dynamo.Wpf.Properties;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.ViewModels
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
using System.IO;
using System.Windows;
using System.Windows.Input;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.PackageManager.UI
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
using Dynamo.Wpf.Utilities;
using Greg.AuthProviders;
using Greg.Responses;
#if NETFRAMEWORK
using Microsoft.Practices.Prism.Commands;
#else
using Prism.Commands;
#endif

namespace Dynamo.ViewModels
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
using Dynamo.ViewModels;
using Dynamo.Wpf.ViewModels;
using Greg.Responses;
#if NETFRAMEWORK
using Microsoft.Practices.Prism.Commands;
#else
using Prism.Commands;
#endif

namespace Dynamo.PackageManager.ViewModels
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@
using Lucene.Net.Documents;
using Lucene.Net.QueryParsers.Classic;
using Lucene.Net.Search;
using Dynamo.Core;
#if NETFRAMEWORK
using Microsoft.Practices.Prism.Commands;
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using Prism.Commands;
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.PackageManager
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using Dynamo.ViewModels;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif
using System.Collections.ObjectModel;

namespace Dynamo.PackageManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
using System.IO;
using System.Linq;
using System.Windows;
using Dynamo.Configuration;
using Dynamo.Graph.Workspaces;
using Dynamo.Logging;
using Dynamo.Models;
using Dynamo.PackageManager;
using Dynamo.Wpf.Properties;
using Dynamo.Wpf.Utilities;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
using Microsoft.Practices.Prism.Commands;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
using Prism.Commands;
#endif

namespace Dynamo.ViewModels
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@
using Dynamo.Wpf.Utilities;
using DynamoUtilities;
using Greg.Requests;
using Prism.Commands;
using PythonNodeModels;
using Double = System.Double;
using NotificationObject = Dynamo.Core.NotificationObject;
using String = System.String;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
using Microsoft.Practices.Prism.Commands;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
using Prism.Commands;
#endif

namespace Dynamo.PackageManager
{
Expand Down
6 changes: 5 additions & 1 deletion src/DynamoCoreWpf/ViewModels/Preview/WatchViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
using Dynamo.Wpf.Properties;
using Dynamo.UI.Commands;
using Dynamo.Utilities;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif
using Dynamo.Configuration;
using CoreNodeModels;

Expand Down
9 changes: 7 additions & 2 deletions src/DynamoCoreWpf/ViewModels/Search/BrowserItemViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
Expand All @@ -11,8 +11,13 @@
using Dynamo.Search.SearchElements;
using Dynamo.ViewModels;
using Dynamo.Wpf.Extensions;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
using Microsoft.Practices.Prism.Commands;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
using Prism.Commands;
using Dynamo.Core;
#endif

namespace Dynamo.Wpf.ViewModels
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
using Dynamo.Selection;
using Dynamo.ViewModels;
using FontAwesome.WPF;
#if NETFRAMEWORK
using Microsoft.Practices.Prism.Commands;
#else
using Prism.Commands;
#endif

namespace Dynamo.Wpf.ViewModels
{
Expand Down
10 changes: 6 additions & 4 deletions src/DynamoCoreWpf/ViewModels/Search/SearchCategory.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System.Windows.Input;

using System.Windows.Input;
using Dynamo.UI.Commands;

using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.Wpf.ViewModels
{
Expand Down
7 changes: 5 additions & 2 deletions src/DynamoCoreWpf/ViewModels/ViewModelBase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using System;
using Dynamo.Configuration;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif
using Newtonsoft.Json;

namespace Dynamo.ViewModels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using Dynamo.Engine.CodeCompletion;
using ICSharpCode.AvalonEdit.CodeCompletion;
using ICSharpCode.AvalonEdit.Editing;
using Dynamo.Core;
#if NETFRAMEWORK
using NotificationObject = Microsoft.Practices.Prism.ViewModel.NotificationObject;
#else
using NotificationObject = Dynamo.Core.NotificationObject;
#endif

namespace Dynamo.UI
{
Expand Down
3 changes: 3 additions & 0 deletions src/DynamoSandbox/DynamoSandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="Microsoft.Practices.Prism">
<HintPath>..\..\extern\prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DynamoApplications\DynamoApplications.csproj">
Expand Down
2 changes: 0 additions & 2 deletions src/DynamoUtilities/DynamoUtilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
<PackageReference Include="System.Collections.Immutable" Version="5.0.0">
Expand Down
9 changes: 5 additions & 4 deletions src/DynamoWPFCLI/DynamoWPFCLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
<RootNamespace>DynamoWPFCLI</RootNamespace>
<AssemblyName>DynamoWPFCLI</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="WindowsBase" />
<ItemGroup Condition=" '$(TargetFramework)' == 'net48' ">
<Reference Include="Microsoft.Practices.Prism">
<HintPath>..\..\extern\prism\Microsoft.Practices.Prism.dll</HintPath>
<HintPath>..\..\extern\prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" Condition=" '$(TargetFramework)' == 'net48' "/>
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/DynamoWPFCLI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using System.Threading;
using Dynamo.Applications;
using Dynamo.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FontAwesome.WPF" Version="4.7.0.9" />
<PackageReference Include="Prism.Core" Version="8.1.97" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DynamoCoreWpf\DynamoCoreWpf.csproj">
Expand Down
Loading

0 comments on commit 3d73767

Please sign in to comment.