Пример #1
0
        /// <summary>
        /// The invoke selected block changed.
        /// </summary>
        /// <param name="e">
        /// The EventArgs.
        /// </param>
        private void OnComponentChanged(SelectedComponentChangedEventArgs e)
        {
            EventHandler <SelectedComponentChangedEventArgs> handler = this.SelectedComponentChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 /// <summary>
 /// The level editor pane_ selected block changed.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The EventArgs.
 /// </param>
 private void LevelEditorPane_SelectedComponentChanged(object sender, SelectedComponentChangedEventArgs e)
 {
     if (e.SelectedComponent != null)
     {
         this.SetPropertyGridObject(e.SelectedComponent);
     }
     else
     {
         this.SetPropertyGridObject(this.levelEditorPane.Level);
     }
 }