public void Dispose() { if (Inputs != null) { Inputs.Dispose(); } if (Outputs != null) { Outputs.Dispose(); } }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (pictureGiver != null) { pictureGiver.Dispose(); } if (Outputs != null) { Outputs.Dispose(); } base.Dispose(disposing); }