Exemplo 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;
     AdditionalProperties properties = new AdditionalProperties(SelectedEntity.Properties);
     properties.Location = Point.Add(this.Location, new Size(50, 50));
     if (properties.ShowDialog() == DialogResult.OK)
         SelectedEntity.Properties = properties.Properties;
 }
Exemplo n.º 2
0
        public void RightMouseDown(ref EditorData data, Point gridPosition)
        {
            if(data.SelectedEntities.Count != 1) return;

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