public void Close() { if (control != null) { control.Dispose(); } control = null; }
public Control CreateControl() { this.control = new ViewImportsControl(); this.comparer = new Comparer(); this.control.Load += Control_Load; this.control.Imports.MouseMove += Imports_MouseMove; this.control.Imports.ColumnClick += Imports_ColumnClick; this.control.Imports.ListViewItemSorter = comparer; this.control.Imports.MouseClick += Imports_MouseClick; return(control); }