Ejemplo n.º 1
0
 internal virtual void fillPolygon(int[] p1, int[] p2)
 {
     if (p1.Length < 3 || p2.Length < 3 || p1.Length != p2.Length)
     {
         return;
     }
     List<Vector2> pointsList = new List<Vector2>();
     pointsList.ToArray();
     for(int pos=0; pos<p1.Length; pos++) {
         Vector2 p = new Vector2();
         p.X = p1[pos];
         p.Y = p2[pos];
         pointsList.Add(p);
     }
     graphics.FillGeometry(CanvasGeometry.CreatePolygon(graphics, pointsList.ToArray()), c);
 }
        public override object listFilesystemRoots() {
            var roots = new List<java.lang.String>();
            roots.Add(toJava("local:"));
            var sdcards = KnownFolders.RemovableDevices;
            if (sdcards != null) {
                roots.Add(toJava("removable:"));
                roots.Add(toJava("SDCard:"));
            }
            roots.Add(toJava("install:"));
            roots.Add(toJava("roaming:"));
            roots.Add(toJava("cache:"));
            roots.Add(toJava("temp:"));
            roots.Add(toJava("CameraRoll:"));


            var rootsAll = new _nArrayAdapter<global::System.Object>(roots.ToArray());
            return rootsAll;
        }