public ISpyControl GetISpyControl(int ot, int id) { switch (ot) { case 1: return GetVolumeLevel(id); case 2: return GetCameraWindow(id); case 3: return GetFloorPlan(id); } return null; }