コード例 #1
0
ファイル: BPAddIn.cs プロジェクト: JOndik/SmallTEAmsHelper
        /// <summary>
        /// called when the selected item changes
        /// This operation will show the guid of the selected element in the eaControl
        /// </summary>
        /// <param name="Repository">the EA.Repository</param>
        /// <param name="GUID">the guid of the selected item</param>
        /// <param name="ot">the object type of the selected item</param>
        public override void EA_OnContextItemChanged(EA.Repository Repository, string GUID, EA.ObjectType ot)
        {
            try
            {
                if (Repository == null || GUID == null || ot.Equals(null))
                {
                    return;
                }

                if (changesAllowed)
                {
                    contextWrapper.handleContextItemChange(Repository, GUID, ot);
                }
            }
            catch (Exception) { }
        }