Hello , i have made many custom activities , but i never add a icon to the activity , but i think i want to add one now , but i cant figure out where and how to add the icon to each activity
im not using activity creator for building my activities , im using the old way of creating it (Class Library .netframework)
I have checked this question on the forum on the same topic but the link for the ICON added in the answer doesn’t redirect to the page it intended too
and the answer is for the Activity Creator not for the one im looking for
Here is my code
namespace Tiff_To_Pdf
{
[DisplayName("Convert Tiff to PDF")]
[Description("Converts a TIFF file to a PDF.")]
public class ConvrtTiffToPdf : CodeActivity
{
[Category("Input")]
[DisplayName("Tiff File Path")]
[RequiredArgument]
[Description("Enter the path to the TIFF file to be converted.")]
public InArgument<string> TiffFilePath { get; set; }
[Category("Input")]
[DisplayName("PDF File Path")]
[RequiredArgument]
[Description("Enter the path to save the converted PDF file.")]
public InArgument<string> PdfFilePath { get; set; }
protected override void Execute(CodeActivityContext context)
{
try
{
string tiffFilePath = TiffFilePath.Get(context);
string pdfFilePath = PdfFilePath.Get(context);
ConvertTiffToPdf(tiffFilePath, pdfFilePath);
}
catch (Exception ex)
{
Console.WriteLine($"An error occurred: {ex.Message}");
}
}
}