public void EventFileDownloaded(object sender, EventArgs args) { //DOSOMETHING: changed to fit your wishes and needs File_Dto temp = (File_Dto)sender; int siteId = temp.SiteUId; string caseType = temp.CaseType; string caseUid = temp.CaseUId; string mUId = temp.MicrotingUId; string checkUId = temp.CheckUId; string fileLocation = temp.FileLocation; }
private static void Core_HandleFileDownloaded(object sender, EventArgs e) { File_Dto fileDto = (File_Dto)sender; Packer packer = new Packer(); String jsonFileDto = packer.PackFileDto(fileDto); IntPtr ptr = (IntPtr)fileDownloadedCallbackPointer; FileDownloadedCallback fileDownloadedCallbackMethod = (FileDownloadedCallback)Marshal.GetDelegateForFunctionPointer(ptr, typeof(FileDownloadedCallback)); fileDownloadedCallbackMethod(jsonFileDto); }
public string PackFileDto(File_Dto fileDto) { return(JObject.FromObject(fileDto).ToString()); }