Esempio n. 1
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;
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            foreach (var brush in TileProvider.GetAll())
            {
                brushSelect.Items.Add(brush.Name);
            }

            foreach (var actor in ActorProvider.GetAll())
            {
                actorSelect.Items.Add(actor.Name);
            }

            _seletedTile = TileDefinition.Default;
            brushSelect.SelectedIndex = 0;
            actorSelect.SelectedIndex = 0;
            btnSave.Enabled           = false;
        }