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