예제 #1
0
파일: WorkSpace.cs 프로젝트: BgRva/Blob1
 internal void _utilitiesMgr_Removing(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented:  WorkSpace._utilitiesMgr_Removing.");
 }
예제 #2
0
파일: WorkSpace.cs 프로젝트: BgRva/Blob1
 internal void _utilitiesMgr_Modifying(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented.");
 }
예제 #3
0
파일: WorkSpace.cs 프로젝트: BgRva/Blob1
 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);
         }
     }
 }
예제 #4
0
파일: WorkSpace.cs 프로젝트: BgRva/Blob1
        /// <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);
                }
            }
        }