Ejemplo n.º 1
0
 private void Swap(MapToolTipCornerType type1, MapToolTipCornerType type2)
 {
     MapToolTipCorner c1 = GetCorner(type1);
     MapToolTipCorner c2 = GetCorner(type2);
     c1.type = type2;
     c2.type = type1;
 }
Ejemplo n.º 2
0
 private MapToolTipCorner GetCorner(MapToolTipCornerType type)
 {
     if (c1.type == type) return c1;
     if (c2.type == type) return c2;
     if (c3.type == type) return c3;
     if (c4.type == type) return c4;
     return null;
 }
Ejemplo n.º 3
0
        private void Swap(MapToolTipCornerType type1, MapToolTipCornerType type2)
        {
            MapToolTipCorner c1 = GetCorner(type1);
            MapToolTipCorner c2 = GetCorner(type2);

            c1.type = type2;
            c2.type = type1;
        }
Ejemplo n.º 4
0
 private MapToolTipCorner GetCorner(MapToolTipCornerType type)
 {
     if (c1.type == type)
     {
         return(c1);
     }
     if (c2.type == type)
     {
         return(c2);
     }
     if (c3.type == type)
     {
         return(c3);
     }
     if (c4.type == type)
     {
         return(c4);
     }
     return(null);
 }