void lists_ViewAdded(object sender, ViewEventArgs e) { e.View.ContextMenuStrip = mnuDetails; var view = e.View as ListView; if (view != null) { view.MultiSelect = true; } }
/// <summary> /// Removes all views from UI /// </summary> internal void ClearLists() { _ActiveList = null; for (int i = 0; i < entries.Count; i++) { ViewEventArgs eventArgs = new ViewEventArgs(entries[i].ListView); ViewRemoving.Raise(this, eventArgs); Host.TabPages.Remove(entries[i].TabPage); entries[i].TabPage.Dispose(); ViewRemoved.Raise(this, eventArgs); } entries.Clear(); }
void lists_ViewRemoved(object sender, ViewEventArgs e) { e.View.ContextMenuStrip = null; }