Exemplo n.º 1
0
 //combatant Manipulation
 void addCombatant(Combatant c)
 {
     CombatantControl cc = c.GetCombatantControl();
     cc.MouseMove += new MouseEventHandler(c_MouseMove);
     cc.PreviewDrop += new DragEventHandler(c_PreviewDrop);
     cc.DeleteRequested += new CombatantControl.DeleteRequestedHandler(cc_DeleteRequested); ;
     cc.lb = lbInitiative;
     cc.Position = lbInitiative.Items.Count;
     cc.combatantListIndex = combatantList.Count;
     this.lbInitiative.Items.Add(cc);
     combatantList.Add(c);
 }