- 1
- 2
- 3
- 4
if (lvwUsers.SelectedItems[0].SubItems[1].Text != "" ||
lvwUsers.SelectedItems[0].SubItems[1].Text != string.Empty)
{
SecuritySettings.AuthenticationProtocol = ....
А IsNullOrEmpty для .NET 2+
lvwUsers.SelectedItems.Count>0
и
lvwUsers.SelectedItems[0].SubItems.Count>0
до String.IsNullOrWhiteSpace() может и не дойти)