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