public static void DestroyPanel(string panelName) { Logger.DEBUG("panelName=" + panelName); PandoraImpl pandoraImpl = Pandora.Instance.GetPandoraImpl(); pandoraImpl.DestroyPanel(panelName); }
public static void CreatePanel(uint callId, string panelName) { Logger.DEBUG("callId=" + callId.ToString() + " panelName=" + panelName); PandoraImpl pandoraImpl = Pandora.Instance.GetPandoraImpl(); Action <bool> onCreatePanel = delegate(bool status) { Dictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary.set_Item("RetCode", status ? "0" : "-1"); dictionary.set_Item("PanelName", panelName); string result = Json.Serialize(dictionary); CSharpInterface.ExecCallback(callId, result); if (!status) { Logger.ERROR(string.Empty); pandoraImpl.DestroyPanel(panelName); } }; pandoraImpl.CreatePanel(panelName, onCreatePanel); }