X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=dev4%2Fpsychlops%2Fextention%2Fcompatibility%2Fcompatibility.cs;h=fe1889fea14f77e8e91bcdd8d6d5633aee653104;hb=7bd951bfbca3432f306f4f114cc0b06f47e13ed9;hp=f43b5d55ed16410ed6d36e90d2eea4f2a22f857b;hpb=9f47dcd91507b95984913358b5b313f1e304a091;p=psychlops%2Fsilverlight.git diff --git a/dev4/psychlops/extention/compatibility/compatibility.cs b/dev4/psychlops/extention/compatibility/compatibility.cs index f43b5d5..fe1889f 100644 --- a/dev4/psychlops/extention/compatibility/compatibility.cs +++ b/dev4/psychlops/extention/compatibility/compatibility.cs @@ -25,13 +25,51 @@ 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 { + public enum DisplayName { primary, secondary } + public static DisplayName primary = DisplayName.primary, secondary = DisplayName.secondary; + public static void pix(int x, int y, Color col) { Main.canvas.pix(x, y, col); } 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); }