Esempio n. 1
0
 /*
  * AdditionalProperties
  *
  * Launches the Additional properties dialog when the button is pressed
  */
 private void AdditionalProperties(object sender, EventArgs e)
 {
     if (_mFilteredEntities.Count == 0 || SelectedEntity == null) return;
     var properties = new AdditionalProperties(SelectedEntity.Properties);
     properties.Location = Point.Add(Location, new Size(50, 50));
     if (properties.ShowDialog() == DialogResult.OK)
         SelectedEntity.Properties = properties.Properties;
 }
Esempio n. 2
0
        public void RightMouseDown(ref EditorData data, Point gridPosition)
        {
            if(data.SelectedEntities.Count != 1) return;

            var properties = new AdditionalProperties(data.Level.SelectEntity(gridPosition).Properties);
            properties.Editable = false;
            if (properties.ShowDialog() == DialogResult.OK)
                data.Level.SelectEntity(gridPosition).Properties = properties.Properties;
        }