OnLoad ( EventArgs e ) { AssertValid(); base.OnLoad(e); if (lbxSourceWorkbook.Items.Count == 0) { this.ShowWarning(ExcelWorkbookListBox.NoOtherWorkbooks); this.Close(); } else { lbxSourceWorkbook.SelectedIndex = 0; } }