MegaMan.Editor.Bll.Tools.TileBrushToolBehavior.RightClick C# (CSharp) Method

RightClick() public method

public RightClick ( ScreenCanvas surface, Point location ) : void
surface MegaMan.Editor.Controls.ScreenCanvas
location Point
return void
        public void RightClick(ScreenCanvas surface, Point location)
        {
            int tile_x = location.X / surface.Screen.Tileset.TileSize;
            int tile_y = location.Y / surface.Screen.Tileset.TileSize;

            var tile = surface.Screen.TileAt(tile_x, tile_y);
            ViewModelMediator.Current.GetEvent<TileSelectedEventArgs>().Raise(this, new TileSelectedEventArgs() { Tile = tile });
        }