private void OnObjectManagerDeleteObject(object sender, LevelEditorObjectEvent args)
 {
     args.Object.OnStateChanged -= OnObjectStateChanged;
     if (!loadingLevel)
     {
         treeControl.RemoveItem(args.Object);
     }
 }
 private void OnObjectManagerCreatedObject(object sender, LevelEditorObjectEvent args)
 {
     args.Object.OnStateChanged += OnObjectStateChanged;
     if (!loadingLevel)
     {
         treeControl.AddItem(args.Object);
     }
 }
 private void OnCreateDeleteObject(object sender, LevelEditorObjectEvent args)
 {
     MarkDirty();
 }