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();
        }
 public ColourSwatchParam(GH_PersistentParam <TGoo> target, ParamGlassesComponent owner, bool enable,
                          string[] tips = null, int tipsRelay = 5000, bool renderLittleZoom = false)
     : base(null, owner, null, enable, Color.Black, tips, tipsRelay, renderLittleZoom)
 {
     this.Target = target;
     this.Owner  = owner;
 }
예제 #3
0
 public InputBoxStringParam(GH_PersistentParam <TGoo> target, ParamGlassesComponent owner, bool enable,
                            string[] tips = null, int tipsRelay = 5000, bool renderLittleZoom = false)
     : base(null, owner, null, enable, "", tips, tipsRelay, null, renderLittleZoom)
 {
     this.Target = target;
     this.Owner  = owner;
 }
예제 #4
0
 public ButtonAddObjectOutput(GH_Param <TGoo> target, ParamGlassesComponent owner, bool enable,
                              string[] tips         = null, int tipsRelay = 5000, Func <ToolStripDropDownMenu> createMenu = null, bool isToggle = true,
                              bool renderLittleZoom = false)
     : base(null, owner, null, enable, true, tips, tipsRelay, createMenu, isToggle, renderLittleZoom)
 {
     this.Target = target;
     this.Owner  = owner;
 }
예제 #5
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);
        }
예제 #6
0
        public WireConnectRenderItem(IGH_Param target, ParamGlassesComponent owner, Func <bool> showFunc = null)
            : base(target, showFunc, true)
        {
            if (!target.Attributes.HasInputGrip)
            {
                throw new ArgumentOutOfRangeException("Target must has InputGrip!");
            }
            ParamProxies = new List <GooTypeProxy>();
            this.Owner   = owner;

            UpdateParamProxy();
            target.OnPingDocument().SolutionEnd += WireConnectRenderItem_SolutionEnd;
        }
예제 #7
0
        public ParamSettingsWindow(ParamGlassesComponent owner)
            : base()
        {
            this.DataContext = this;
            this.Owner       = owner;

            foreach (var item in owner.CreateProxyDictInput)
            {
                _createProxyDictInput[item.Key] = item.Value;
            }
            foreach (var item in owner.CreateProxyDictOutput)
            {
                _createProxyDictOutput[item.Key] = item.Value;
            }
            foreach (var item in owner.ColorDict)
            {
                _colorDict[item.Key] = item.Value;
            }
            InitializeComponent();

            SetShowProxy(owner.AllParamProxy);
            DrawDataTree(owner.AllParamProxy);

            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;
            };
        }
예제 #8
0
 public ParamLegend(ParamGlassesComponent owner, Func <bool> showFunc = null)
     : base(null, showFunc, true)
 {
     this.Owner = owner;
 }