Minor cosmetic cleanup.

0.6.0-stable
Jeff Ames 2008-05-01 19:00:12 +00:00
parent bcab39831e
commit 6729d488a5
2 changed files with 6 additions and 18 deletions

View File

@ -58,25 +58,15 @@ namespace LaunchSLClient
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Items.AddRange(new object[] {
"Local Sandbox",
"Local Grid Server",
"DeepGrid - www.deepgrid.com",
"OSGrid - www.osgrid.org",
"Linden Labs - www.secondlife.com"});
this.comboBox1.Location = new System.Drawing.Point(37, 83);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(348, 21);
this.comboBox1.TabIndex = 0;
this.comboBox1.Text = "Choose from list";
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
//
// textBox1
//
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(37, 32);
@ -84,10 +74,8 @@ namespace LaunchSLClient
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(292, 19);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "Choose from one of the following:";
//
// Form1
//
this.textBox1.Text = "Grid to connect to:";
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(501, 339);

View File

@ -62,7 +62,7 @@ namespace LaunchSLClient
initializeGrids();
ArrayList menuItems = new ArrayList();
menuItems.Add("Please select one:");
menuItems.Add(string.Empty);
addLocalSims(ref menuItems);
@ -200,7 +200,7 @@ namespace LaunchSLClient
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Please select one:")
if (comboBox1.Text == string.Empty)
{
return;
}