public void SetPluginHost(IPluginHost Host) { //assign host this.FHost = Host; this.FData = DoubleDataHolder.Instance; this.FHost.CreateValueInput("Input", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinInput); this.FPinInput.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); this.FHost.CreateStringInput("Send String", TSliceMode.Single, TPinVisibility.True, out this.FPinInSendString); this.FPinInSendString.SetSubType("send", false); }
public void SetPluginHost(IPluginHost Host) { //assign host this.FHost = Host; this.FData = DoubleDataHolder.Instance; this.FData.OnAdd += FData_OnAdd; this.FData.OnRemove += this.FData_OnAdd; this.FData.OnUpdate += this.FData_OnAdd; this.FHost.CreateStringInput("Receive String", TSliceMode.Single, TPinVisibility.True, out this.FPinInReceiveString); this.FPinInReceiveString.SetSubType("send", false); this.FHost.CreateValueInput("Default", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinInDefault); this.FPinInDefault.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); this.FHost.CreateValueOutput("Output", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutValue); this.FPinOutValue.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); this.FHost.CreateValueOutput("Found", 1, null, TSliceMode.Single, TPinVisibility.True, out this.FPinOutMatchCount); this.FPinOutMatchCount.SetSubType(0, 1, 1, 0, false, true, false); }