megabax
|
29.05.2021 . |
unit AIObj
.
14. .
,
.
.
.
. ,
,
, :

, ObjectProperty...
...
...
... tvProperties.
, tsmiEditProperty_Click
( ),
private void
tsmiEditProperty_Click(object sender,
EventArgs e)
{
//
,
if (tvProperties.SelectedNode
!= null)
{
//
, Tag
ObjectProperty
prop = tvProperties.SelectedNode.Tag as
ObjectProperty;
InputString form =
new InputString();
form.Text = "
()";
form.tbEdit.Text = prop.name;
if (form.ShowDialog() ==
DialogResult.OK)
{
prop.name = form.tbEdit.Text;
Library.refresh_properties(tvProperties,data);
}
}
else
{
MessageBox.Show("
");
}
} |
...
...
... , .
:

. -
, - ...
..
..
...
:
private void
tsmiOptions_Click(object sender,
EventArgs e)
{
OptionsForm form =
new OptionsForm(data);
form.ShowDialog();
} |
...
...
... , .
.
, (.
).
.
|