void ReleaseDesignerOutlets() { if (CommentField != null) { CommentField.Dispose(); CommentField = null; } if (ConfirmButton != null) { ConfirmButton.Dispose(); ConfirmButton = null; } if (InventoryIDLabel != null) { InventoryIDLabel.Dispose(); InventoryIDLabel = null; } if (RejectButton != null) { RejectButton.Dispose(); RejectButton = null; } if (StateCommentLabel != null) { StateCommentLabel.Dispose(); StateCommentLabel = null; } if (StateIcon != null) { StateIcon.Dispose(); StateIcon = null; } if (StateTimeStartLabel != null) { StateTimeStartLabel.Dispose(); StateTimeStartLabel = null; } if (StateUserLabel != null) { StateUserLabel.Dispose(); StateUserLabel = null; } }
public override void Dispose() { if (HealthBar != null) { HealthBar.Dispose(); } if (StateIcon != null) { StateIcon.Dispose(); } if (TimeIcon != null) { TimeIcon.Dispose(); } base.Dispose(); }