Beispiel #1
0
        public void Handle(ApplicationActivatedEvent message)
        {
            Log.Debug("{Class} {Event} {@ApplicationActivatedEvent}", "RibbonViewModel", "Handle:ApplicationActivatedEvent:Start", message);
            if (ActiveDocument != null)
            {
                if (ActiveDocument.HasDatabaseSchemaChanged())
                {
                    ActiveDocument.RefreshMetadata();
                    ActiveDocument.OutputMessage("Model schema change detected - Metadata refreshed");
                }
                RefreshConnectionDetails(ActiveDocument, ActiveDocument.SelectedDatabase);
            }

            Log.Debug("{Class} {Event} {@ApplicationActivatedEvent}", "RibbonViewModel", "Handle:ApplicationActivatedEvent:End", message);
        }