Microsoft Office Tutorials and References
In Depth Information
Form-level events
//Form sign status property
private bool SignStatus
{
get
{
// To store the state values FormState
if (FormState.Contains(_signStatus))
{
return (bool)FormState[_signStatus];
}
return false;
}
set
{
if (!FormState.Contains(_signStatus))
{
FormState.Add(_signStatus, value);
}
else
{
FormState[_signStatus] = value;
}
}
}
public void FormEvents_Sign(object sender, SignEventArgs e)
{
// Form status check
if (SignStatus)
{
Signature thisSignature = e.SignedDataBlock.Signatures.
CreateSignature();
thisSignature.Sign();
e.SignatureWizard = true;
}
else
{
e.SignatureWizard = false;
MessageBox.Show("Click here to proceed.");
return;
}
}
 
Search JabSto ::




Custom Search