Пример #1
0
        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();
        }
Пример #2
0
        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();
        }