Esempio n. 1
0
        private void OpenDatabase(Database database)
        {
            LogView logView = null;

            if (LogViewToOpenDocumentIn != null)
            {
                logView = LogViewToOpenDocumentIn;
                logView.AddDatabase(database);
            }
            else
            {
                logView = new LogView(database);
                LogViewsSourceCache.AddOrUpdate(logView);
            }
            OpenLogView(logView);
        }
Esempio n. 2
0
        private void OpenSelectedLogFile()
        {
            if (SelectedLogFile == null)
            {
                return;
            }
            LogView logView = null;

            if (LogViewToOpenDocumentIn != null)
            {
                logView = LogViewToOpenDocumentIn;
                logView.AddLogFile(SelectedLogFile);
            }
            else
            {
                logView = new LogView(SelectedLogFile);
                LogViewsSourceCache.AddOrUpdate(logView);
            }
            OpenLogView(logView);
        }