X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=dev4%2Fpsychlops%2Fextention%2Fcompatibility%2Fcompatibility.cs;h=50e4f98d2a05e97703ffdbd766303d47ede4a0bf;hb=c778254ba66748949fba1e807aec154cdf5dadf1;hp=f43b5d55ed16410ed6d36e90d2eea4f2a22f857b;hpb=892d07a825dbe4e84ee7f3e480ece30d1f97a4d8;p=psychlops%2Fsilverlight.git diff --git a/dev4/psychlops/extention/compatibility/compatibility.cs b/dev4/psychlops/extention/compatibility/compatibility.cs index f43b5d5..50e4f98 100644 --- a/dev4/psychlops/extention/compatibility/compatibility.cs +++ b/dev4/psychlops/extention/compatibility/compatibility.cs @@ -25,6 +25,40 @@ namespace Psychlops } } **/ + public class Procedure + { + System.Action acc; + System.Action acc_c; + int func = 0; + + public void setDesign() + { + } + public void setProcedure(System.Action ac) + { + acc = ac; + func = 1; + } + public void setProcedure(System.Action ac) + { + acc_c = ac; + func = 2; + } + public void run() + { + if (func == 1) + { + acc(); + } + } + public void run(Canvas c) + { + if (func == 2) + { + acc_c(c); + } + } + } public static class Display { @@ -32,6 +66,7 @@ namespace Psychlops public static void line(Line drawee) { Main.canvas.line(drawee); } public static void rect(Rectangle drawee) { Main.canvas.rect(drawee); } public static void ellipse(Ellipse drawee) { Main.canvas.ellipse(drawee); } + public static void oval(Ellipse drawee) { Main.canvas.ellipse(drawee); } public static void polygon(Polygon drawee) { Main.canvas.polygon(drawee); } public static void letters(Letters drawee) { Main.canvas.letters(drawee); } public static void image(Image drawee) { Main.canvas.image(drawee); }