コード例 #1
0
        private void brush_Click(object sender, EventArgs e)
        {
            var brushControl = (Control)sender;
            var brushName    = (string)brushControl.Tag;

            _seletedTile = TileProvider.GetBrush(brushName);
        }
コード例 #2
0
        private void brushSelect_SelectedIndexChanged(object sender, EventArgs e)
        {
            var selectedBrushName = (string)brushSelect.SelectedItem;
            var selectedBrush     = TileProvider.GetBrush(selectedBrushName);

            brushSelect.BackColor = selectedBrush.EditorColor;

            _seletedTile = selectedBrush;
        }