When I invalidate a signature because something has changed on the form, I call SignatureBoxWrapper.ClearSignature(). If I then try to call SignatureBoxWrapper.SetInvalid(),so the invalid signature label will show, nothing happens. If I instead call only SignatureBoxWrapper.SetInvalid(), that label will show but the signature will show underneath which is pretty ugly.
If I modify SignatureBoxWrapper.SetInvalid() like so the signature is cleared and the label shows nicely in its place.
Code: Select all
public void SetInvalid(){
if(sigBoxTopaz!=null && sigBoxTopaz.Visible){
if(TopazWrapper.GetTopazNumberOfTabletPoints(sigBoxTopaz)==0){
return;//no need to do anything because no signature
}
}
else{
if(sigBox.NumberOfTabletPoints()==0) {
return;//no need to do anything because no signature
}
}
ClearSignature(); <--------------------------------Add
labelInvalidSig.Visible=true;
labelInvalidSig.BringToFront();
}
Thanks.