private void LaunchForm_Load( object sender, EventArgs e )
{
if ( _dte.Solution.Projects.Count == 0 )
{
// If the misc files project is the only project, display an error.
MessageBox.Show( "A project must be opened" );
this.Close();
return;
}
// Add all the projects except the misc files project to the combobox.
for ( int i = 1; i <= _dte.Solution.Projects.Count; i++ )
{
Project proj = _dte.Solution.Projects.Item( i );
this.cmbProjects.Items.Add( proj.Name );
}
this.cmbProjects.SelectedIndex = 0;
}