protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == (Keys.Control | Keys.Shift | Keys.F))
     {
         var form = new AnalyzerSettingsForm();
         if (form.ShowDialog() == DialogResult.OK)
         {
             Z64ObjectAnalyzer.FindDlists(_obj, _data, _segment, form.Result);
             UpdateMap();
         }
         return(true);
     }
     else if (keyData == (Keys.Control | Keys.Shift | Keys.A))
     {
         var errors = Z64ObjectAnalyzer.AnalyzeDlists(_obj, _data, _segment);
         if (errors.Count > 0)
         {
             StringWriter sw = new StringWriter();
             errors.ForEach(error => sw.WriteLine(error));
             TextForm form = new TextForm(SystemIcons.Warning, "Warning", sw.ToString());
             form.ShowDialog();
         }
         UpdateMap();
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
        private void analyzeDlistsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var errors = Z64ObjectAnalyzer.AnalyzeDlists(_obj, _data, _segment);

            if (errors.Count > 0)
            {
                StringWriter sw = new StringWriter();
                errors.ForEach(error => sw.WriteLine(error));
                TextForm form = new TextForm(SystemIcons.Warning, "Warning", sw.ToString());
                form.ShowDialog();
            }
            UpdateMap();
        }