123456789101112131415161718192021222324252627282930313233343536373839 |
- using CommonAI.Zone;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace CommonAIEditor
- {
- public partial class FormUnitActionDefinition : Form
- {
- private UnitActionDefinitionMap data;
- public UnitActionDefinitionMap Data { get { return data; } }
-
- public FormUnitActionDefinition()
- {
- InitializeComponent();
- this.data = Editor.Instance.UnitActionDefinition.Clone() as UnitActionDefinitionMap;
- this.g2DPropertyGrid1.SetSelectedObject(data);
- // this.g2DPropertyGrid1.ExpandAllGridItems();
- this.Refresh();
- }
- protected override void OnClosing(CancelEventArgs e)
- {
- base.OnClosing(e);
- this.data = g2DPropertyGrid1.GetSelectedValue() as UnitActionDefinitionMap;
- }
- private void button_OK_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|