Example #1
0
 internal void _utilitiesMgr_Removing(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented:  WorkSpace._utilitiesMgr_Removing.");
 }
Example #2
0
 internal void _utilitiesMgr_Modifying(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented.");
 }
Example #3
0
 internal void _utilitiesMgr_Removed(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     if (sender != null)
     {
         for (int i = 0; i < ea.Utilities.Length; i++)
         {
             ClearSubscriptions(ea.Utilities[i]);
         }
         if (ea.Utilities.Length > 0)
         {
             UtilityInstancesDeletedEventArgs arg = new UtilityInstancesDeletedEventArgs(ea.Utilities);
             OnUtilityInstancesDeleted(arg);
         }
     }
 }
Example #4
0
        /// <summary>
        /// Handles the <see cref="IComments"/>.<see cref="Added"/> event which is fired when an comment is added
        /// to the comments mgr of this workspace.
        /// </summary>
        internal void _utilitiesMgr_Added(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
        {
            if (sender != null)
            {
                // subscribe to the StatusChange events when an comment is added to the comments mgr.
                for (int i = 0; i < ea.Utilities.Length; i++)
                {
                    ea.Utilities[i].SelectionChanged += new SelectionEventHandler<IUtility, SelectionEventArgs>(utility_SelectionChanged);
                }

                // fire the event which confirms to subscribers that the comment(s) has been successfully added.  This
                // is the final confirmation of a successful addition of an comment.
                if (ea.Utilities.Length > 0)
                {
                    UtilityInstancesAddedEventArgs arg = new UtilityInstancesAddedEventArgs(ea.Utilities);
                    OnUtilityInstancesAdded(arg);
                }
            }
        }