Esempio n. 1
0
 public WorkSpace(Guid id, IVarMgr varMgr, IElements elementsMgr, IPipes pipesMgr, IWorkSpaceOptionsMgr optionsMgr, IWorkSpaceSettingsMgr settingsMgr, IUtilitiesMgr commentsMgr)
 {
     SettingsMgr = settingsMgr;
     OptionsMgr = optionsMgr;
     VarMgr = varMgr;
     ElementsMgr = elementsMgr;
     PipesMgr = pipesMgr;
     UtilitiesMgr = commentsMgr;
     Id = id;
     _wsProperties = new WorkSpaceProperties(Id);
 }
Esempio n. 2
0
 internal void _utilitiesMgr_Removing(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented:  WorkSpace._utilitiesMgr_Removing.");
 }
Esempio n. 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);
         }
     }
 }
Esempio n. 4
0
 internal void _utilitiesMgr_Modifying(IUtilitiesMgr sender, UtilityCollectionEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented.");
 }
Esempio n. 5
0
 internal void _utilitiesMgr_Clearing(IUtilitiesMgr sender, ClearEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented.");
 }
Esempio n. 6
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);
                }
            }
        }