private void EditSettings_Click(object sender, EventArgs e)
        {
            var zone = ((ResizableObject <Zone>)GameObjectList.SelectedItem).Data;

            Windows.KeyValueEditPopup popup = new Windows.KeyValueEditPopup(zone.Settings);
            popup.Closed += (o, e2) =>
            {
                if (popup.DialogResult)
                {
                    //_objectTypesListbox.GetContainer(_objectTypesListbox.SelectedItem).IsDirty = true;
                    zone.Settings = popup.SettingsDictionary;
                    RebuildProperties(zone);
                    MainScreen.Instance.ToolsPane.RedrawPanels();
                }
            };
            popup.Show(true);
        }
 private void EditSettings_ButtonClicked(object sender, EventArgs e)
 {
     var zone = ((ResizableObject<Zone>)GameObjectList.SelectedItem).Data;
     Windows.KeyValueEditPopup popup = new Windows.KeyValueEditPopup(zone.Settings);
     popup.Closed += (o, e2) =>
     {
         if (popup.DialogResult)
         {
             //_objectTypesListbox.GetContainer(_objectTypesListbox.SelectedItem).IsDirty = true;
             zone.Settings = popup.SettingsDictionary;
             RebuildProperties(zone);
             EditorConsoleManager.ToolsPane.RedrawPanels();
         }
     };
     popup.Show(true);
 }