private void ToolStripSegmentsBtn_Click(object sender, System.EventArgs e)
        {
            if (_segForm != null)
            {
                _segForm.Activate();
            }
            else
            {
                _segForm = new SegmentEditorForm(_game, _renderer);
                _segForm.SegmentsChanged += (sender, seg) =>
                {
                    int idx = (int)sender;
                    if (idx == 0xD)
                    {
                        MessageBox.Show("Error", "Cannot set segment 13 (reserved for animation matrices)");
                    }
                    else
                    {
                        _renderer.Memory.Segments[(int)sender] = seg;

                        UpdateLimbsDlists();
                        NewRender();
                    }
                };
                _segForm.FormClosed += (sender, e) => _segForm = null;
                _segForm.Show();
            }
        }
 private void toolStripSegmentsBtn_Click(object sender, EventArgs e)
 {
     if (_segForm != null)
     {
         _segForm.Activate();
     }
     else
     {
         _segForm = new SegmentEditorForm(_game, _renderer);
         _segForm.SegmentsChanged += SegForm_SegmentsChanged;
         _segForm.FormClosed      += (sender, e) => _segForm = null;
         _segForm.Show();
     }
 }