Beispiel #1
0
 private void MakeNotDummy(ArrayExpressionItem di)
 {
     di.AllowDrop          = false;
     di.DragEnter         -= OnDummyItemDragEnter;
     di.DragDrop          -= OnDummyItemDragDrop;
     di.textBox1.KeyPress -= DummyItemNameKeyPress;
     di.MakeNotDummy();
     AddDummyItem();
 }
Beispiel #2
0
 public static void LenChanged(ArrayExpressionItem by)
 {
     for (var i = 0; i < Items.Count - 1; ++i)
     {
         if (Items[i] != by)
         {
             Items[i].ApplyNewLen();
         }
     }
 }
Beispiel #3
0
        private void AddDummyItem()
        {
            var item = new ArrayExpressionItem
            {
                Location  = new Point(0, Items.Count * ArrayExpressionItem.ItemHeight - VerticalScroll.Value),
                AllowDrop = true,
                Width     = Width
            };

            item.DragEnter         += OnDummyItemDragEnter;
            item.DragDrop          += OnDummyItemDragDrop;
            item.textBox1.KeyPress += DummyItemNameKeyPress;
            Items.Add(item);
            item.Anchor |= AnchorStyles.Right;
            Controls.Add(item);
        }