void StackItem_Tapped(object sender, int _itemnumber) { count++; if (count > 1) { int a = 3; } if (!_itemslocked) { _itemslocked = true; if (_selectiontype != SelectionType.ItemType || _touches < 2) { resetzposition(_itemnumber); _selecteditem = _itemsvector[_itemnumber]; _selectiontype = SelectionType.ItemType; _selectedindex = _itemnumber; _selecteditem.ZIndex = 100; _selecteditem.LoadFullSource(); _selecteditem.AnimateToFull(); IControlsComponentSelected(this, SelectionType.ItemType, _stacknumber); Canvas.SetZIndex(this, 10); } else { _itemsvector[_itemnumber].DeleteFullSource(); } } }
//private: void StackItem_Selected(object sender, int _itemnumber) { if (_selectiontype != SelectionType.ItemType && !_itemslocked) { resetzposition(_itemnumber); _selecteditem = _itemsvector[_itemnumber]; _selectiontype = SelectionType.ItemType; _selectedindex = _itemnumber; _selecteditem.ZIndex = 100; _selecteditem.LoadFullSource(); IControlsComponentSelected(this, SelectionType.ItemType, _stacknumber); Canvas.SetZIndex(this, 100); } _itemslocked = true; /** * else * { * _itemsvector[_itemnumber].ZIndex -= _itemnumber ; * _itemsvector[_itemnumber].DeleteFullSource(); * }*/ }
void StackItem_Tapped(object sender, int _itemnumber) { count++; if (count > 1) { int a = 3; } if (!_itemslocked) { _itemslocked = true; if (_selectiontype != SelectionType.ItemType || _touches < 2) { resetzposition(_itemnumber); _selecteditem = _itemsvector[_itemnumber]; _selectiontype = SelectionType.ItemType; _selectedindex = _itemnumber; _selecteditem.ZIndex = 100; _selecteditem.LoadFullSource(); _selecteditem.AnimateToFull(); IControlsComponentSelected(this, SelectionType.ItemType, _stacknumber); Canvas.SetZIndex(this, 10); } else { _itemsvector[_itemnumber].DeleteFullSource(); } } }
//private: void StackItem_Selected(object sender, int _itemnumber) { if (_selectiontype != SelectionType.ItemType && !_itemslocked) { resetzposition(_itemnumber); _selecteditem = _itemsvector[_itemnumber]; _selectiontype = SelectionType.ItemType; _selectedindex = _itemnumber; _selecteditem.ZIndex = 100; _selecteditem.LoadFullSource(); IControlsComponentSelected(this, SelectionType.ItemType, _stacknumber); Canvas.SetZIndex(this, 100); } _itemslocked = true; /** else { _itemsvector[_itemnumber].ZIndex -= _itemnumber ; _itemsvector[_itemnumber].DeleteFullSource(); }*/ }