Example #1
0
 public void NewSelectedInfluence()
 {
     if (selectedRegions.Count > 0)
     {
         Influence newInfluence = new Influence();
         int       argb         = new Random().Next();
         newInfluence.Color = Color.FromArgb((int)(argb | 0XFF000000));;
         foreach (Region region in selectedRegions)
         {
             newInfluence.AddRegion(region);
             if (region.Influence != null)
             {
                 region.Influence.RemoveRegion(region);
             }
             region.Influence = newInfluence;
         }
         selectedRegions.Clear();
     }
 }