private void AddOwner(InfoGlassesComponent owner)
        {
            this._owner = owner;

            this.IsExceptNormal = _owner.normalExceptionGuid.Contains(this.Guid);
            this.IsExceptPlugin = _owner.pluginExceptionGuid.Contains(this.Guid);
        }
        public ExceptionWindow(InfoGlassesComponent owner)
            : base()
        {
            this.DataContext = this;

            _normalExceptions = new List <Guid>();
            foreach (Guid item in owner.normalExceptionGuid)
            {
                _normalExceptions.Add(item);
            }
            _pluginExceptions = new List <Guid>();
            foreach (Guid item1 in owner.pluginExceptionGuid)
            {
                _pluginExceptions.Add(item1);
            }
            this.Owner = owner;

            this.InitializeComponent();

            SetShowProxy(owner.AllProxy);
            DrawDataTree(owner.AllProxy);

            LanguageChanged();
            LanguagableComponent.LanguageChanged += WindowLanguageChanged;

            this.Deactivated += (x, y) =>
            {
                ActiveBorder.Visibility = Visibility.Visible;
                //this.Opacity = 0.6;
            };
            this.Activated += (x, y) =>
            {
                ActiveBorder.Visibility = Visibility.Hidden;
                //this.Opacity = 1;
            };
        }
 public ExceptionProxy(IGH_DocumentObject obj, InfoGlassesComponent owner)
     : base(obj)
 {
     this.AddOwner(owner);
 }
 public ExceptionProxy(IGH_ObjectProxy proxy, InfoGlassesComponent owner)
     : base(proxy)
 {
     this.AddOwner(owner);
 }