public static void LoadKMZFromResources(C1VectorLayer vl, string resname, bool clear, ProcessVectorItem pv) { using (Stream zipStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resname)) { if (zipStream != null) { if( clear) vl.Children.Clear(); vl.LoadKMZ(zipStream, true, pv); } } }
public static void LoadKMZFromResources(C1VectorLayer vl, string resname, bool clear, ProcessVectorItem pv) { using (Stream zipStream = typeof(Utils).GetTypeInfo().Assembly.GetManifestResourceStream(resname)) { if (zipStream != null) { if (clear) { vl.Children.Clear(); } vl.LoadKMZ(zipStream, true, pv); } } }