24 lines
530 B
C#
24 lines
530 B
C#
#if !NET472
|
|
using System.Runtime.Versioning;
|
|
using RhSolutions;
|
|
using RhSolutions.Models;
|
|
using RhSolutions.Tools;
|
|
#endif
|
|
|
|
|
|
namespace RhSolutions.Tools;
|
|
|
|
#if !NET472
|
|
[SupportedOSPlatform("windows")]
|
|
#endif
|
|
internal class MergeTool : ToolBase
|
|
{
|
|
public override void Execute()
|
|
{
|
|
IFileDialog dialog = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IFileDialog>();
|
|
string[] files = dialog.GetFiles();
|
|
var products = _reader.ReadProducts(files);
|
|
_writer.WriteProducts(products);
|
|
}
|
|
}
|