Example #1
0
        private void SpriteSelectedHandler(object sender, OnSpriteSelectedEventArgs e)
        {
            int position;

            foreach (SpriteControl item in panelSprites.Controls)
            {
                if (item != sender)
                {
                    item.Selected = false;
                }
            }
            _selectedSprite = (SpriteControl)sender;

            position = _file.Sprites.IndexOf(e.Sprite);
            if (OnSpriteSelected != null)
            {
                OnSpriteSelected(this, new OnSpriteSelectedEventArgs(position, e.Sprite));
            }
        }
Example #2
0
 private void SpriteSelectedHandler(object sender, OnSpriteSelectedEventArgs e)
 {
     paneInformation.Sprite = e.Sprite;
     paneContent.Sprite     = e.Sprite;
 }