public void Dispose() { QueryContainer.Dispose(); QueryExistsContainer.Dispose(); FirstContainer.Dispose(); AllContainer.Dispose(); }
private void ManageDiffOutput(IDiffSpread <bool> advanced) { if (FAdvanced[0]) { Keep.QuickMode = false; var ia = new InputAttribute("Include input in Diff"); ia.Order = 2; ia.IsSingle = true; ia.IsToggle = true; ia.DefaultBoolean = true; Type pinType = typeof(IDiffSpread <>).MakeGenericType(typeof(bool)); DoAllChange = FIOFactory.CreateIOContainer(pinType, ia); var pin = DoAllChange.RawIOObject as IDiffSpread <bool>; pin.Changed += UpdateChangeAll; var attr = new OutputAttribute("Message Diff"); attr.AutoFlush = false; attr.Order = 2; pinType = typeof(Pin <>).MakeGenericType(typeof(Message)); Change = FIOFactory.CreateIOContainer(pinType, attr); FChangeOut = Change.RawIOObject as Pin <Message>; attr = new OutputAttribute("Changed Message Index"); attr.AutoFlush = false; attr.Order = 3; pinType = typeof(ISpread <>).MakeGenericType(typeof(int)); ChangeIndex = FIOFactory.CreateIOContainer(pinType, attr); FChangeIndexOut = ChangeIndex.RawIOObject as Pin <int>; } else { Keep.QuickMode = true; if (DoAllChange != null) { DoAllChange.Dispose(); DoAllChange = null; ManageAllChanges = true; } if (ChangeIndex != null) { ChangeIndex.Dispose(); ChangeIndex = null; FChangeIndexOut = null; } if (FChangeOut != null) { Change.Dispose(); Change = null; FChangeOut = null; } } }
public void Dispose() { foreach (var tuple in FEnumerators) { Unsubscribe(tuple); } BinSizePin.Dispose(); }
public void Dispose() { foreach (var subject in FSubjects) { subject.Dispose(); } BinSizePin.Dispose(); }
public void Dispose() { FDataContainer.Dispose(); if (FOwnsBinSizeContainer) { FBinSizeContainer.Dispose(); } }
protected virtual void OnConfigChange(IDiffSpread <string> configSpread) { var formular = new MessageFormular(MessageFormular.DYNAMIC, configSpread[0] ?? "string Value"); if (formular.FieldNames.Count() < 1) { return; } if (FValue != null) { FValue.Dispose(); } var name = formular.FieldNames.First(); TargetDynamicType = formular[name].Type; IOAttribute attr = DefinePin(formular[name]); // each implementation of DynamicNode must create its own InputAttribute or OutputAttribute Type pinType = typeof(ISpread <>).MakeGenericType((typeof(ISpread <>)).MakeGenericType(TargetDynamicType)); // the Pin is always a binsized one FValue = FIOFactory.CreateIOContainer(pinType, attr); }
protected override void OnConfigChange(IDiffSpread <string> configSpread) { base.OnConfigChange(configSpread); var attr = new InputAttribute("AvoidNil"); attr.BinVisibility = PinVisibility.OnlyInspector; attr.Order = 6; attr.BinOrder = 7; attr.BinSize = 1; attr.CheckIfChanged = true; Type pinType = typeof(ISpread <>).MakeGenericType((typeof(ISpread <>)).MakeGenericType(TargetDynamicType)); // the Pin is always a binsized one if (FAvoidNil != null) { FAvoidNil.Dispose(); } FAvoidNil = FIOFactory.CreateIOContainer(pinType, attr); }
public void Dispose() { FDataContainer.Dispose(); FBinSizeContainer.Dispose(); }
public void Dispose() { Resize(0); IOContainer.Dispose(); }
public void Dispose() { FContainer.Dispose(); }
//IDisposable public void Dispose() => iiocontainer.Dispose();