private void lvIniFile_SelectedIndexChanged(object sender, System.EventArgs e) { if (this.lvIniFile.SelectedItems.Count > 0) { this.btnOK.Enabled = true; OnSelectedRepositoryChanged(this.lvRepositories.SelectedItems[0].SubItems[1].Text, this.lvRepositories.SelectedItems[0].SubItems[0].Text, this.lvIniFile.SelectedItems[0].Text); } else { this.btnOK.Enabled = false; OnSelectedRepositoryChanged(this.lvRepositories.SelectedItems[0].SubItems[1].Text, this.lvRepositories.SelectedItems[0].SubItems[0].Text, MOG_Main.GetDefaultSystemConfigFilenameDefine()); } }