예제 #1
0
 protected virtual void OnItemDrag(TiledViewItemMouseEventArgs e)
 {
     if (this.ItemDrag != null)
     {
         this.ItemDrag(this, e);
     }
 }
예제 #2
0
 protected virtual void OnItemDoubleClicked(TiledViewItemMouseEventArgs e)
 {
     if (this.ItemDoubleClicked != null)
     {
         this.ItemDoubleClicked(this, e);
     }
 }
예제 #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);
            }
        }
예제 #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);
 }
예제 #5
0
 private void tiledView_ItemDoubleClicked(object sender, TiledViewItemMouseEventArgs e)
 {
     Console.WriteLine("ItemDoubleClicked {0} at {1} with {2}", e.Item, e.Location, e.Buttons);
 }