private void AddError(object sender, string messagetext)
 {
     AllMessages.AddError(messagetext);
 }
 public void AddError(string format, params object[] args)
 {
     AllMessages.AddError(string.Format(format, args));
 }