sfSystem.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 sfSystem.
- /// </summary>
- public class sfSystem
- {
- private static WddxSerializer wddxSerializer = new WddxSerializer();
-
- public sfSystem() {
-
- }
- public static void Command(Form form, AxShockwaveFlash flashApp, string list, String method) {
-
- //System.Console.WriteLine("Entered sfSystem Command delegation function. Received:" + method);
- // figure out if we need to use another library based on a "." being in the method name;
- if (method.IndexOf(".") > 0)
- {
- string library = method.Substring(0,method.IndexOf("."));
- //figure out which method
- string methodName = method.Substring(method.IndexOf(".")+1);
- switch(library)
- {
- case "Dialogs":
- sfSystemDialogs.Command(form,flashApp,list,methodName);
- break;
-
- case "MessageBox":
- sfSystemMessageBox.Command(form,flashApp,list,methodName);
- break;
- case "Registry":
- sfSystemRegistry.Command(form,flashApp,list,methodName);
- break;
- }
-
- }
- else
- {
- switch(method)
- {
- case "shellOpenDocument":
- sfSystem.shellOpenDocument(form, flashApp, list);
- break;
- }
- }
- }
- public static void shellOpenDocument(Form form, AxShockwaveFlash flashApp, string list) {
- // :TODO: write me. :-)
- }
- }
- }