sfSystemRegistry.cs
上传用户:lctyggxszx
上传日期:2022-06-30
资源大小:280k
文件大小:2k
源码类别:

FlashMX/Flex源码

开发平台:

C#

  1. using System;
  2. using System.Collections;
  3. using System.ComponentModel;
  4. using System.Windows.Forms;
  5. using AxShockwaveFlashObjects;
  6. using Mueller.Wddx;
  7. namespace SharpFlash
  8. {
  9. /// <summary>
  10. /// Summary description for sfSystemRegistry.
  11. /// </summary>
  12. public class sfSystemRegistry
  13. {
  14. private static WddxSerializer wddxSerializer = new WddxSerializer();
  15. public sfSystemRegistry() {
  16. }
  17. public static void Command(Form form, AxShockwaveFlash flashApp, string list, String method) {
  18. switch(method) {
  19. case "read": sfSystemRegistry.read(form, flashApp, list); break;
  20. case "removeKey": sfSystemRegistry.removeKey(form, flashApp, list); break;
  21. case "removeValue": sfSystemRegistry.removeValue(form, flashApp, list); break;
  22. case "write": sfSystemRegistry.write(form, flashApp, list); break;
  23. }
  24. }
  25. public static void read(Form form, AxShockwaveFlash flashApp, string list) {
  26. // to be written...
  27. /*
  28. flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
  29. + "<args>" 
  30. + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
  31. + "</args></callback></sf>");
  32. */
  33. }
  34. public static void removeKey(Form form, AxShockwaveFlash flashApp, string list) 
  35. {
  36. // to be written...
  37. /*
  38. flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
  39. + "<args>" 
  40. + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
  41. + "</args></callback></sf>");
  42. */
  43. }
  44. public static void removeValue(Form form, AxShockwaveFlash flashApp, string list) 
  45. {
  46. // to be written...
  47. /*
  48. flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
  49. + "<args>" 
  50. + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
  51. + "</args></callback></sf>");
  52. */
  53. }
  54. public static void write(Form form, AxShockwaveFlash flashApp, string list) 
  55. {
  56. // to be written...
  57. /*
  58. flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
  59. + "<args>" 
  60. + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
  61. + "</args></callback></sf>");
  62. */
  63. }
  64. }
  65. }