Exemple #1
0
        private void logViewerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_logViewer == null)
            {
                _logViewer = new FormLogViewer(_logger);
                _logViewer.Show();
                return;
            }

            if (_logViewer.HaveLoadedLog)
            {
                // Log viewer has another log (not SOAPe's) loaded, so we will open a new window attached to SOAPe's
                // (we only need to keep track of the last opened window, as it can't be reattached to the SOAPe log)
                _logViewer = new FormLogViewer(_logger);
                _logViewer.Show();
                return;
            }
            if (_logViewer.Visible)
            {
                _logViewer.Focus();
                return;
            }

            try
            {
                _logViewer.Show();
                return;
            }
            catch { }
            _logViewer = new FormLogViewer(_logger);
            _logViewer.Show();
        }
Exemple #2
0
        private void buttonViewOtherLog_Click(object sender, EventArgs e)
        {
            FormLogViewer logViewer = new FormLogViewer();

            if (!logViewer.IsDisposed)
            {
                logViewer.Show();
            }
        }