internal ILMarkerShape Create(ILMarkerShapeProxy proxy) { if (proxy.Source is string) { return(Create(m_panel, proxy.Source as string)); } else if (proxy.Source is MarkerStyle) { return(Create(m_panel, (MarkerStyle)proxy.Source)); } else if (proxy.Source is Bitmap) { return(Create(m_panel, proxy.Source as Bitmap)); } throw new ILArgumentException(String.Format("Unable to create marker shape based on proxy source given: {0}", proxy.Source.ToString())); }
internal ILMarkerShape Create(ILMarkerShapeProxy proxy) { if (proxy.Source is string) { return Create(m_panel,proxy.Source as string); } else if (proxy.Source is MarkerStyle) { return Create(m_panel,(MarkerStyle)proxy.Source); } else if (proxy.Source is Bitmap) { return Create(m_panel,proxy.Source as Bitmap); } throw new ILArgumentException(String.Format("Unable to create marker shape based on proxy source given: {0}",proxy.Source.ToString())); }