// Invokable method to set received component collections to the static component collection private void AddComponents(Grevit.Types.ComponentCollection componentCollection) { if (this.debugTextBox.InvokeRequired) { SetComponentsCallback d = new SetComponentsCallback(AddComponents); this.Invoke(d, new object[] { componentCollection }); } else { this.componentCollection = componentCollection; } }
// Invokable method to set received component collections to the static component collection private void AddComponents(Grevit.Types.ComponentCollection componentCollection) { if (this.debugTextBox.InvokeRequired) { SetComponentsCallback d = new SetComponentsCallback(AddComponents); this.Invoke(d, new object[] { componentCollection }); } else { this.componentCollection = componentCollection; } }