コード例 #1
0
ファイル: Utils.cs プロジェクト: mdjabirov/C1Decompiled
        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);
            }
              }
        }
コード例 #2
0
        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);
                }
            }
        }