Attached Files
Your Products have been synced, click here to refresh
class Program { // Define the delegate and event public delegate void OnReportPrintStartDelegate(PartProgram PartProg, DateTime eventDateTime); public event OnReportPrintStartDelegate OnReportPrintStart; static void Main(string[] args) { // Your main program code here... dynamic App = Activator.CreateInstance(Type.GetTypeFromProgID("Pcdlrn.Application")); dynamic PartProg = App.ActivePartProgram; // Raise the event and pass the current date and time as an argument OnReportPrintStart?.Invoke(PartProg, DateTime.Now); } }
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |