sfSystemRegistry.cs
上传用户:lctyggxszx
上传日期:2022-06-30
资源大小:280k
文件大小:2k
- using System;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using AxShockwaveFlashObjects;
- using Mueller.Wddx;
- namespace SharpFlash
- {
- /// <summary>
- /// Summary description for sfSystemRegistry.
- /// </summary>
- public class sfSystemRegistry
- {
- private static WddxSerializer wddxSerializer = new WddxSerializer();
-
- public sfSystemRegistry() {
-
- }
- public static void Command(Form form, AxShockwaveFlash flashApp, string list, String method) {
- switch(method) {
- case "read": sfSystemRegistry.read(form, flashApp, list); break;
- case "removeKey": sfSystemRegistry.removeKey(form, flashApp, list); break;
- case "removeValue": sfSystemRegistry.removeValue(form, flashApp, list); break;
- case "write": sfSystemRegistry.write(form, flashApp, list); break;
- }
- }
- public static void read(Form form, AxShockwaveFlash flashApp, string list) {
- // to be written...
- /*
- flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
- + "<args>"
- + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
- + "</args></callback></sf>");
- */
- }
- public static void removeKey(Form form, AxShockwaveFlash flashApp, string list)
- {
- // to be written...
- /*
- flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
- + "<args>"
- + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
- + "</args></callback></sf>");
- */
- }
- public static void removeValue(Form form, AxShockwaveFlash flashApp, string list)
- {
- // to be written...
- /*
- flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
- + "<args>"
- + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
- + "</args></callback></sf>");
- */
- }
- public static void write(Form form, AxShockwaveFlash flashApp, string list)
- {
- // to be written...
- /*
- flashApp.SetVariable("$SFData", "<sf><callback><id>" + callback + "</id>"
- + "<args>"
- + "<arg>" + wddxSerializer.Serialize(true).ToString() + "</arg>"
- + "</args></callback></sf>");
- */
- }
-
- }
- }