void GetStartupClasses() { this.comboStartupObject.Items.Clear(); this.comboStartupObject.Items.Add(DefaultValue); var prjfile = ParentPropertyPage.ProjectMgr.ProjectFile; var list = XDatabase.GetStartupClasses(System.IO.Path.GetFileName(prjfile)); foreach (var item in list) { this.comboStartupObject.Items.Add(item); } if (comboStartupObject.Items.Count == 1) { comboStartupObject.SelectedItem = DefaultValue; this.comboStartupObject.Items.Add(""); comboStartupObject.Enabled = false; } }