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

            var eventTemp = LoadedAsset.GetAllActions().ElementAt(index).Item1;

            var index2 = dataGridViewEffects.SelectedRows[0].Index;

            var effect = LoadedAsset.GetAllEventEffects()[eventTemp].ElementAt(index2);

            LoadedAsset.RemoveEffect(eventTemp, effect);
            SetModified();
            dataGridViewEventTemplates_SelectionChanged(sender, e);
        }