示例#1
0
        private void recentBackups_DoubleClick(object sender, EventArgs e)
        {
            if (recentBackups.SelectedItems.Count != 1)
            {
                return;
            }

            Log l = recentBackups.SelectedItems[0].Tag as Log;

            if (l == null)
            {
                return;
            }

            LogViewer dlg = new LogViewer();

            if (!string.IsNullOrEmpty(l.ParsedMessage))
            {
                dlg.LogText.Text = l.ParsedMessage + Environment.NewLine + Environment.NewLine;
            }
            else
            {
                dlg.LogText.Text = "";
            }

            //TODO: Figure out if LDM still fails here
            dlg.LogText.Text += l.Blob.StringData;

            dlg.ShowDialog(this);
        }
示例#2
0
        private void recentBackups_DoubleClick(object sender, EventArgs e)
        {
            if (recentBackups.SelectedItems.Count != 1)
                return;

            Log l = recentBackups.SelectedItems[0].Tag as Log;
            if (l == null)
                return;

            LogViewer dlg = new LogViewer();
            if (!string.IsNullOrEmpty(l.ParsedMessage))
                dlg.LogText.Text = l.ParsedMessage + Environment.NewLine + Environment.NewLine;
            else
                dlg.LogText.Text = "";

            //TODO: Figure out if LDM still fails here
            dlg.LogText.Text += l.Blob.StringData;

            dlg.ShowDialog(this);
        }