public void VerifyDocumentCount(int count) { System.Collections.ArrayList docs = this.GetDocumentWindows( ); if (docs.Count != count) { Tracing.DumpWindows(docs); throw new Errors.PainterError(err_incorrect_document_count); } }
public void VerifyNoDialogs() { Tracing.StartMethodTrace(); System.Collections.ArrayList dialogs = this.GetDialogWindows( ); if (dialogs.Count > 0) { Tracing.DumpWindows(dialogs); throw new Errors.UnexpectedDialog(err_dialogs_found); } Tracing.EndMethodTrace(); }