void doCmd(ContexMenuCmd pCmd) { try { switch (pCmd) { case ContexMenuCmd.changeAgent: CurrentVersion.ENV.initNs((o, e) => { ToolMobile.restartEnvironment(); this.Recreate(); }); break; case ContexMenuCmd.export: environment.toActivity("tool.data.export", null).done(); break; case ContexMenuCmd.import: environment.toActivity("tool.data.import", null).done(); break; case ContexMenuCmd.test: { StartActivity(typeof(ActivityTest)); } break; } } catch (Exception exc) { ToolMobile.setException(exc); } }