public ListViewExMenu(ListViewEx owner, GuiList <T> items)
        {
            _owner = owner;
            _items = items;

            MenuItemBase clear = new MenuItemBase("Очистить", OnClickClear);

            this.Add(clear);
        }
Beispiel #2
0
        public MemoContextMenu(Memo memo)
        {
            _memo = memo;

            MenuItemBase itemClear      = new MenuItemBase("Очистить", OnClear, null);
            MenuItemBase itemSelectAll  = new MenuItemBase("Выделить все", OnSelectAll, null);
            MenuItemBase itemAutoScroll = new MenuItemBase("Автоскролл", OnAutoScroll, null);

            itemAutoScroll.IsCheckable = true;
            itemAutoScroll.IsChecked   = true;

            this.Add(itemClear);
            this.Add(itemSelectAll);
            this.AddSeparator();
            this.Add(itemAutoScroll);
        }