/// <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 (TextBoxFont != null) { TextBoxFont.Dispose(); } } base.Dispose(disposing); }
/// <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(); } int i; for (i = 0; i < headerImageList.Count; i++) { headerImageList[i].Dispose(); } for (i = 0; i < ilistGroupEmpty.Count; i++) { ilistGroupEmpty[i].Dispose(); } for (i = 0; i < ilistGroupExpanded.Count; i++) { ilistGroupExpanded[i].Dispose(); } for (i = 0; i < ilistGroupCollapsed.Count; i++) { ilistGroupCollapsed[i].Dispose(); } for (i = 0; i < ilistSaveNormal.Count; i++) { ilistSaveNormal[i].Dispose(); } for (i = 0; i < ilistSaveDirty.Count; i++) { ilistSaveDirty[i].Dispose(); } for (i = 0; i < ilistEmbed.Count; i++) { ilistEmbed[i].Dispose(); } for (i = 0; i < iListFlashTextBox.Count; i++) { iListFlashTextBox[i].Font.Dispose(); iListFlashTextBox[i].Font = null; iListFlashTextBox[i].Dispose(); } TextBoxFont.Dispose(); TextBoxFont = null; base.Dispose(disposing); }