Ignore:
Timestamp:
Jun 10, 2010, 3:26:32 PM (12 years ago)
Author:
kopal
Message:
  • a delete of a plugin now leads to the delete of all left connections
  • added a first version of a Settings to the WorkspaceManager
  • some small bug fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/VisualElementModel.cs

    r1607 r1617  
    3333    public abstract class VisualElementModel
    3434    {
     35        /// <summary>
     36        /// Called when this object is deleted
     37        /// </summary
     38        public event EventHandler<EventArgs> OnDelete;
    3539
    3640        /// <summary>
    37         /// I will be deleted
    38         /// </summary
    39         public event EventHandler<EventArgs> Delete;
     41        /// Triggers event OnDelete
     42        /// </summary>
     43        public void onDelete(){
     44            if(OnDelete != null){
     45                EventArgs args = new EventArgs();         
     46                OnDelete.Invoke(this, args);
     47            }
     48        }
    4049
    4150        public Point Position { get; set; }
Note: See TracChangeset for help on using the changeset viewer.