public GooProxyWindow(ParamGlassesComponent owner, GooTypeProxy proxy)
            : base()
        {
            this._proxy      = proxy;
            this._paramOwner = owner;
            this._wireColor  = proxy.ShowColor;
            try
            {
                this._inputProxy = owner.CreateProxyDictInput[proxy.TypeFullName];
            }
            catch { }
            try
            {
                this._outputProxy = owner.CreateProxyDictOutput[proxy.TypeFullName];
            }
            catch { }

            InitializeComponent();

            WindowSwitchControl_SelectionChanged(null, null);
            WindowTitle.Text = proxy.TypeName;

            LanguageChanged();
            LanguagableComponent.LanguageChanged += WindowLanguageChanged;

            AddActiveEvents();
        }
Exemplo n.º 2
0
        public SelectOneParamWindow(ParamGlassesComponent owner, bool isInput, GooTypeProxy proxy)
            : base()
        {
            this._proxy      = proxy;
            this._isInput    = isInput;
            this._paramOwner = owner;
            InitializeComponent();

            SetShowProxy(_paramOwner.AllProxy);
            DrawDataTree(_paramOwner.AllProxy);
        }
Exemplo n.º 3
0
        private void Edit_Click(object sender, RoutedEventArgs e)
        {
            GooTypeProxy aimProxy  = (GooTypeProxy)((Button)sender).Tag;
            var          subWindow = new GooProxyWindow(Owner, aimProxy)
            {
                Owner = this
            };

            subWindow.Show();
            //System.Windows.Forms.MessageBox.Show(aimProxy.TypeName);
        }