main
1using System;
2using System.Windows.Forms;
3
4namespace MoMoney.Presentation.Winforms.Helpers
5{
6 public class ControlAdapter : Control
7 {
8 readonly IDisposable item;
9
10 public ControlAdapter(IDisposable item)
11 {
12 this.item = item;
13 }
14
15 protected override void Dispose(bool disposing)
16 {
17 if (disposing) item.Dispose();
18 base.Dispose(disposing);
19 }
20 }
21}