private int GetSelectedInstanceID() { int[] numArray = !this.IsUsingTreeView() ? this.m_ListArea.GetSelection() : this.m_ObjectTreeWithSearch.GetSelection(); if (numArray.Length >= 1) { return numArray[0]; } return 0; }