예제 #1
0
 private void buttonDuplicateReaction_Click(object sender, EventArgs e)
 {
     if (dataGridViewReactiveActions.SelectedRows.Count == 1)
     {
         var a = ((ObjectView <ActionRuleDTO>)dataGridViewReactiveActions.SelectedRows[0].DataBoundItem).Object;
         var duplicateAction = CloneHelper.Clone(a);
         LoadedAsset.AddActionRule(duplicateAction);
         actionRules.DataSource = LoadedAsset.GetAllActionRules().ToList();
         actionRules.Refresh();
         SetModified();
     }
 }