Exemplo n.º 1
0
        private void buttonAddEvent_Click(object sender, EventArgs e)
        {
            var ev = new AddOrEditActionTemplateForm(_wmAsset, null);

            ev.ShowDialog(this);
            RefreshEventList();
        }
Exemplo n.º 2
0
        private void buttonEditAttRule_Click(object sender, EventArgs e)
        {
            var index = dataGridViewEventTemplates.SelectedRows[0].Index;

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

            var ev = new AddOrEditActionTemplateForm(_wmAsset, actionTemp, priority);

            ev.ShowDialog(this);

            RefreshEventList();
        }