public static void listPerspectives(CMSControl control) { perspectiveInfo2[] perspectives = control.getCMSPerspectives(); for (int i=0; i < perspectives.Length; i++) { Console.WriteLine(perspectives[i].perspectiveId.id + ": " + perspectives[i].name); } }
public static void listDisplets(CMSControl control) { perspectiveInfo2[] pinfos = control.getCMSPerspectives(); foreach(perspectiveInfo2 pinfo in pinfos) { displetInfo2[] dinfos = control.getPerspectiveDisplets(pinfo); foreach(displetInfo2 dinfo in dinfos) { Console.WriteLine(dinfo.displetId + ": " + dinfo.name + ", " + dinfo.width + "x" + dinfo.height + ", " + "x:" + dinfo.x + " y:" + dinfo.y + ", sourceId:" + dinfo.sourceId.id + ", perspective: " + pinfo.name); } } }