Beispiel #1
0
 void onEditor_SelectionChanged(object sender, EditorSelectionEventArgs args)
 {
     mPropertiesWindow.SelectedObject = args.SelectedObject;
     mPropertiesWindow.CommandManager = args.Editor.CommandManager;
 }
Beispiel #2
0
        /// <summary>
        /// Инициирует событие по смене активного объекта
        /// </summary>
        protected void RaiseSelectionChanged()
        {
            if (SelectionChanged != null)
            {
                EditorSelectionEventArgs e = new EditorSelectionEventArgs();
                e.SelectedObject = SelectedObject;
                e.Editor = this;

                SelectionChanged(this, e);
            }
        }