public STUSignatureForm(int signatureIndex, SignatureClientBehaviour signatureClientBehaviour, JobReferenceEx jobReferenceEx) { try { m_SignatureClientBehaviour = signatureClientBehaviour; m_jobReferenceEx = jobReferenceEx; m_signatureIndex = signatureIndex; m_ErrorCaptureEvent += new SealSignBSSClientLibrary.SealSignBSSWacomSTUPanel.ErrorCapture(sealSignBSSWacomSTUPanel1_ErrorCaptureEvent); m_ErrorDeviceNotConnectedEvent += new SealSignBSSClientLibrary.SealSignBSSWacomSTUPanel.ErrorDeviceNotConnected(sealSignBSSWacomSTUPanel1_ErrorDeviceNotConnectedEvent); m_OkButtonClickEvent = new SealSignBSSClientLibrary.SealSignBSSWacomSTUPanel.OkButtonClick(sealSignBSSWacomSTUPanel1_OkButtonClickEvent); m_CancelButtonClickEvent += new SealSignBSSClientLibrary.SealSignBSSWacomSTUPanel.CancelButtonClick(sealSignBSSWacomSTUPanel1_CancelButtonClickEvent); m_progressWindow = new ProgressWindow(); InitializeComponent(); } catch (Exception ex) { if (m_progressWindow != null) { m_progressWindow.Close(); } Tools.ShowUnexpectedError(this, ex); } }
public string GetBehavior(int jobId, string jobTitle, [FromBody] GetBehaviorModel bodyData) { var jobTitleDecoded = Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(jobTitle)); var documentBytes = WebEncoders.Base64UrlDecode(bodyData.Document); SignatureClientBehaviour[] signatureClientBehaviour = new SignatureClientBehaviour[1]; signatureClientBehaviour[0] = new SignatureClientBehaviour(); signatureClientBehaviour[0].signatureId = ""; signatureClientBehaviour[0].signatureAccount = ""; signatureClientBehaviour[0].providerParameter = ""; signatureClientBehaviour[0].signatureWindowTitle = "Firme AquĆ . . ."; return(JsonConvert.SerializeObject(signatureClientBehaviour)); }
public DTUSignatureForm(int signatureIndex, SignatureClientBehaviour signatureClientBehaviour, JobReferenceEx jobReferenceEx) { try { m_SignatureClientBehaviour = signatureClientBehaviour; m_jobReferenceEx = jobReferenceEx; m_signatureIndex = signatureIndex; m_ErrorCaptureEvent += new SealSignBSSClientLibrary.SealSignBSSPanel.ErrorCapture(sealSignBSSPanel1_ErrorCaptureEvent); m_progressWindow = new ProgressWindow(Convert.ToInt32(Tools.GetAppSettings("wacom_dtu_screen_number")) - 1); InitializeComponent(); } catch (Exception ex) { if (m_progressWindow != null) { m_progressWindow.Close(); } Tools.ShowUnexpectedError(this, ex); } }