Add copy to clipboard command for material

This commit is contained in:
Evgeny Redikultsev
2024-12-21 22:26:29 +05:00
parent a7dd63ccd4
commit fb017af47d
17 changed files with 451 additions and 186 deletions

View File

@@ -0,0 +1,29 @@
using System.Text;
namespace StructureHelperLogics.NdmCalculations.Analyses
{
public abstract class ExportToCSVLogicBase : IExportResultLogic
{
public string separator => ";";
public StringBuilder output { get; } = new();
public string FileName { get; set; }
public void Export()
{
ExportHeadings();
ExportBoby();
try
{
File.AppendAllText(FileName, output.ToString());
}
catch (Exception ex)
{
Console.WriteLine("Data could not be written to the CSV file.");
return;
}
}
public abstract void ExportBoby();
public abstract void ExportHeadings();
}
}