public static void ShowExportMessages( string InMessages ) { if (ExportMessages == null || ExportMessages.IsDisposed) { ExportMessages = new DatasmithRevitExportMessages(); ExportMessages.Messages = InMessages; ExportMessages.Show(); } }
public static void ShowExportMessages() { if (ExportMessagesDialog == null || ExportMessagesDialog.IsDisposed) { ExportMessagesDialog = new DatasmithRevitExportMessages(() => ExportMessages = ""); ExportMessagesDialog.Messages = ExportMessages; ExportMessagesDialog.Show(); } else { ExportMessagesDialog.Focus(); } }