Exemplo n.º 1
0
 protected virtual void OnItemDrag(TiledViewItemMouseEventArgs e)
 {
     if (this.ItemDrag != null)
     {
         this.ItemDrag(this, e);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnItemDoubleClicked(TiledViewItemMouseEventArgs e)
 {
     if (this.ItemDoubleClicked != null)
     {
         this.ItemDoubleClicked(this, e);
     }
 }
Exemplo n.º 3
0
        protected virtual void OnItemClicked(TiledViewItemMouseEventArgs e)
        {
            if (this.ItemClicked != null)
            {
                this.ItemClicked(this, e);
            }

            if (this.itemEditIndex == e.ModelIndex && this.allowUserItemEdit)
            {
                this.BeginEdit(e.ModelIndex);
            }
        }
Exemplo n.º 4
0
 private void tiledView_ItemDrag(object sender, TiledViewItemMouseEventArgs e)
 {
     Console.WriteLine("ItemDrag {0} at {1} with {2}", e.Item, e.Location, e.Buttons);
     DragDropEffects result = this.tiledView.DoDragDrop(e.Item, DragDropEffects.All);
     Console.WriteLine("  Result: {0}", result);
 }
Exemplo n.º 5
0
 private void tiledView_ItemDoubleClicked(object sender, TiledViewItemMouseEventArgs e)
 {
     Console.WriteLine("ItemDoubleClicked {0} at {1} with {2}", e.Item, e.Location, e.Buttons);
 }