Beispiel #1
0
        void lists_ViewAdded(object sender, ViewEventArgs e)
        {
            e.View.ContextMenuStrip = mnuDetails;
            var view = e.View as ListView;

            if (view != null)
            {
                view.MultiSelect = true;
            }
        }
Beispiel #2
0
        /// <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();
        }
Beispiel #3
0
 void lists_ViewRemoved(object sender, ViewEventArgs e)
 {
     e.View.ContextMenuStrip = null;
 }