Beispiel #1
0
        private void addEffectDTO_Click(object sender, EventArgs e)
        {
            var index = dataGridViewEventTemplates.SelectedRows[0].Index;

            var eventTemp = _wmAsset.GetAllActions().ElementAt(index);
            var ef        = new AddorEditEffect(_wmAsset, eventTemp.Item1, -1, new EffectDTO());

            ef.ShowDialog(this);
            dataGridViewEventTemplates_SelectionChanged(sender, e);
            RefreshEventList();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e) // Edit Effect
        {
            var index2 = -1;

            var index = dataGridViewEventTemplates.SelectedRows[0].Index;

            var actionTemp = _wmAsset.GetAllActions().ElementAt(index).Item1;

            index2 = dataGridViewEffects.SelectedRows[0].Index;

            var effect = _wmAsset.GetAllEventEffects()[actionTemp].ElementAt(index2);

            var ef = new AddorEditEffect(_wmAsset, actionTemp, index2, effect.ToDTO());

            ef.ShowDialog(this);



            dataGridViewEventTemplates_SelectionChanged(sender, e);
        }