Example #1
0
        private void actorSelect_SelectedIndexChanged(object sender, EventArgs e)
        {
            var selectedActorName = (string)actorSelect.SelectedItem;
            var selectedActor     = ActorProvider.GetActor(selectedActorName);

            _selectedActor = selectedActor;
        }
Example #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;
        }