Exemplo n.º 1
0
        private NeoDrawable.Drawing GetSuitableDrawing(DrawableObject obj)
        {
            string type     = obj.GetDrawableType();
            string objShape = type.Split(new char[] { ' ' }, 2)[1];

            foreach (NeoDrawable.Drawing dr in drawings)
            {
                string drtype  = dr.ToString();
                string drShape = drtype.Split(new char[] { ' ' }, 2)[1];
                if (drShape == objShape)
                {
                    return(dr);
                }
            }
            return(null);
        }