void MyMainMap_AtomDeployedEvent(object sender, AtomDeployedEventArgs args) { List <AtomDTOData> atoms = (List <AtomDTOData>)(dtGridActors.ItemsSource); foreach (AtomDTOData atom in atoms) { if (atom.atom.GUID == args.atom.UnitGuid) { atom.atom.isDeployed = true; } } dtGridActors.Items.Refresh(); }
void MyMainMap_AtomDeployedEvent(object sender, AtomDeployedEventArgs args) { List<AtomDTOData> atoms = (List<AtomDTOData>)(dtGridActors.ItemsSource); foreach(AtomDTOData atom in atoms) { if(atom.atom.GUID== args.atom.UnitGuid) { atom.atom.isDeployed = true; } } dtGridActors.Items.Refresh(); }