public int PanelsCount() { try { return GetPanelsArray().Count; } catch (Exception e) { return 0; } }