Add copy to clipboard command for material
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user