Exemplo n.º 1
0
        private void btnEditAffects_Click(object sender, EventArgs e)
        {
            if (objectList.SelectedIndex == -1 || objectList.SelectedIndex >= _area.Objects.Count)
            {
                MessageBox.Show("No valid object data to edit affects for.");
            }
            EditAffect dlg = new EditAffect(_area.Objects[objectList.SelectedIndex].Affected);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                _area.Objects[objectList.SelectedIndex].Affected = dlg.GetAffects();
            }
        }
Exemplo n.º 2
0
 private void btnEditAffects_Click(object sender, EventArgs e)
 {
     if (objectList.SelectedIndex == -1 || objectList.SelectedIndex >= _area.Objects.Count)
     {
         MessageBox.Show("No valid object data to edit affects for.");
     }
     EditAffect dlg = new EditAffect(_area.Objects[objectList.SelectedIndex].Affected);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         _area.Objects[objectList.SelectedIndex].Affected = dlg.GetAffects();
     }
 }