Exemple #1
0
 private void RemoveEvent(object sender, EventArgs e)
 {
     if (_Scene != null)
     {
         _Scene.Events.Events(_EventTypeString[_Type]).RemoveAt(_Scene.Events.Events(_EventTypeString[_Type]).IndexOf(
                                                                    Scene_Interface.GetPossibleEvents(_Scene, _EventTypeString[_Type])[_Index]));
     }
     else
     {
         _SceneObject.Events.Events(_EventTypeString[_Type]).RemoveAt(_SceneObject.Events.Events(_EventTypeString[_Type]).IndexOf(
                                                                          Scene_Interface.GetPossibleEvents(_SceneObject.ParentScene, _EventTypeString[_Type])[_Index]));
     }
     this.Visible = false;
 }
Exemple #2
0
 private void LockEvent(object sender, EventArgs e)
 {
     if (_Index == -1)
     {
         return;
     }
     if (_Scene != null)
     {
         _Scene.Events.Events(_EventTypeString[_Type]).Add(Scene_Interface.GetPossibleEvents(_Scene, _EventTypeString[_Type])[_Index]);
         Init(_Interface, _Scene, _Type, _Index, true);
     }
     else
     {
         _SceneObject.Events.Events(_EventTypeString[_Type]).Add(Scene_Interface.GetPossibleEvents(_SceneObject.ParentScene, _EventTypeString[_Type])[_Index]);
         Init(_Interface, _SceneObject, _Type, _Index, true);
     }
 }