Example #1
0
        public ProfilerLiveObjectsView(ListViewXP view)
        {
            // config
            listView = view;

            comparer            = new TypeItemComparer();
            comparer.SortColumn = TypeItem.COL_COUNT;
            comparer.Sorting    = SortOrder.Descending;

            listView.ListViewItemSorter = comparer;
            listView.ColumnClick       += new ColumnClickEventHandler(listView_ColumnClick);

            // action
            viewObjectsItem        = new ToolStripMenuItem(PluginCore.Localization.TextHelper.GetString("Label.ViewObjectsItem"));
            viewObjectsItem.Click += new EventHandler(onViewObjects);

            listView.ContextMenuStrip = new ContextMenuStrip();
            listView.ContextMenuStrip.Items.Add(viewObjectsItem);

            listView.DoubleClick += new EventHandler(onViewObjects);
        }
        public ProfilerLiveObjectsView(ListViewXP view)
        {
            // config
            listView = view;

            comparer = new TypeItemComparer();
            comparer.SortColumn = TypeItem.COL_COUNT;
            comparer.Sorting = SortOrder.Descending;

            listView.ListViewItemSorter = comparer;
            listView.ColumnClick += new ColumnClickEventHandler(listView_ColumnClick);

            // action
            viewObjectsItem = new ToolStripMenuItem(PluginCore.Localization.TextHelper.GetString("Label.ViewObjectsItem"));
            viewObjectsItem.Click += new EventHandler(onViewObjects);

            listView.ContextMenuStrip = new ContextMenuStrip();
            listView.ContextMenuStrip.Items.Add(viewObjectsItem);

            listView.DoubleClick += new EventHandler(onViewObjects);
        }
        public ProfilerLiveObjectsView(ListView view)
        {
            // config
            listView = view;

            comparer            = new TypeItemComparer();
            comparer.SortColumn = TypeItem.COL_COUNT;
            comparer.Sorting    = SortOrder.Descending;

            listView.ListViewItemSorter = comparer;
            listView.ColumnClick       += new ColumnClickEventHandler(listView_ColumnClick);

            // action
            viewObjectsItem        = new ToolStripMenuItem(TextHelper.GetString("Label.ViewObjectsItem"));
            viewObjectsItem.Click += new EventHandler(onViewObjects);

            listView.ContextMenuStrip          = new ContextMenuStrip();
            listView.ContextMenuStrip.Font     = PluginBase.Settings.DefaultFont;
            listView.ContextMenuStrip.Renderer = new DockPanelStripRenderer(false);
            listView.ContextMenuStrip.Items.Add(viewObjectsItem);

            listView.DoubleClick += new EventHandler(onViewObjects);
        }
        public ProfilerLiveObjectsView(ListViewXP view)
        {
            // config
            listView = view;

            comparer = new TypeItemComparer();
            comparer.SortColumn = TypeItem.COL_COUNT;
            comparer.Sorting = SortOrder.Descending;

            listView.ListViewItemSorter = comparer;
            listView.ColumnClick += new ColumnClickEventHandler(listView_ColumnClick);

            // action
            viewObjectsItem = new ToolStripMenuItem(TextHelper.GetString("Label.ViewObjectsItem"));
            viewObjectsItem.Click += new EventHandler(onViewObjects);

            listView.ContextMenuStrip = new ContextMenuStrip();
            listView.ContextMenuStrip.Font = PluginBase.Settings.DefaultFont;
            listView.ContextMenuStrip.Renderer = new DockPanelStripRenderer(false);
            listView.ContextMenuStrip.Items.Add(viewObjectsItem);

            listView.DoubleClick += new EventHandler(onViewObjects);
        }