Code:
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Server_Ports
{
[DesignerGenerated]
internal class Form1 : Form
{
private IContainer components;
[AccessedThroughProperty("ServerN")]
private ComboBox _ServerN;
[AccessedThroughProperty("lblServerName")]
private Label _lblServerName;
[AccessedThroughProperty("lblPor")]
private Label _lblPor;
[AccessedThroughProperty("lblPort")]
private Label _lblPort;
internal virtual ComboBox ServerN
{
get
{
return this._ServerN;
}
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
EventHandler value = new EventHandler(this.ServerN_SelectedIndexChanged);
if (this._ServerN != null)
{
this._ServerN.SelectedIndexChanged -= value;
}
this._ServerN = WithEventsValue;
if (this._ServerN != null)
{
this._ServerN.SelectedIndexChanged += value;
}
}
}
internal virtual Label lblServerName
{
get
{
return this._lblServerName;
}
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
this._lblServerName = WithEventsValue;
}
}
internal virtual Label lblPor
{
get
{
return this._lblPor;
}
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
this._lblPor = WithEventsValue;
}
}
internal virtual Label lblPort
{
get
{
return this._lblPort;
}
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
this._lblPort = WithEventsValue;
}
}
public Form1()
{
this.InitializeComponent();
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
[DebuggerStepThrough]
private void InitializeComponent()
{
this.ServerN = new ComboBox();
this.lblServerName = new Label();
this.lblPor = new Label();
this.lblPort = new Label();
this.SuspendLayout();
this.ServerN.FormattingEnabled = true;
this.ServerN.Items.AddRange(new object[]
{
"(None)",
"Aquarius",
"BabyIcey",
"Basilisk",
"Blizzard",
"Bluebird",
"Cancer",
"Capricorn",
"Centaur",
"Crystal",
"Dark",
"Dragon",
"Dream",
"Eagle",
"Emerald",
"Eternity",
"Faith",
"Fire",
"Freedom",
"Fury",
"GardenOfEden",
"Gemini",
"Glory",
"GreatWall",
"Gryphon",
"HangingGardens",
"Hebby",
"Honor",
"Kanasai_US",
"Kylin",
"Leo",
"Liberty",
"Libra",
"Light",
"Lightning",
"Lion",
"Lucky7",
"Mausoleum",
"Mercury",
"Meteor",
"Nanya",
"Neptune",
"Pegasus",
"Pharos",
"Phoenix",
"Pishu_EU",
"Pluto",
"Prosperity",
"Pyramid",
"Ruby",
"Sagittarius",
"Saturn",
"Scorpio",
"Snowfall",
"SnowWhite",
"StatueOfZeus",
"Storm",
"Sunshine",
"Thunder",
"Tiger",
"Titan",
"Tornado",
"Triumph",
"Turquoise",
"Unicorn",
"Uranus",
"Venus",
"Virgo",
"Volcano",
"WildSwan"
});
Control arg_2DC_0 = this.ServerN;
Point location = new Point(293, 133);
arg_2DC_0.Location = location;
this.ServerN.Name = "ServerN";
Control arg_304_0 = this.ServerN;
Size size = new Size(121, 21);
arg_304_0.Size = size;
this.ServerN.TabIndex = 0;
this.lblServerName.AutoSize = true;
this.lblServerName.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.lblServerName.ForeColor = Color.Red;
Control arg_366_0 = this.lblServerName;
location = new Point(166, 133);
arg_366_0.Location = location;
this.lblServerName.Name = "lblServerName";
Control arg_38E_0 = this.lblServerName;
size = new Size(121, 24);
arg_38E_0.Size = size;
this.lblServerName.TabIndex = 1;
this.lblServerName.Text = "Server Name";
this.lblPor.AutoSize = true;
this.lblPor.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.lblPor.ForeColor = Color.Red;
Control arg_400_0 = this.lblPor;
location = new Point(166, 169);
arg_400_0.Location = location;
this.lblPor.Name = "lblPor";
Control arg_428_0 = this.lblPor;
size = new Size(48, 24);
arg_428_0.Size = size;
this.lblPor.TabIndex = 2;
this.lblPor.Text = "Port:";
this.lblPort.AutoSize = true;
this.lblPort.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.lblPort.ForeColor = Color.Red;
Control arg_49A_0 = this.lblPort;
location = new Point(220, 169);
arg_49A_0.Location = location;
this.lblPort.Name = "lblPort";
Control arg_4C2_0 = this.lblPort;
size = new Size(44, 24);
arg_4C2_0.Size = size;
this.lblPort.TabIndex = 3;
this.lblPort.Text = "99**";
SizeF autoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleDimensions = autoScaleDimensions;
this.AutoScaleMode = AutoScaleMode.Font;
this.BackColor = Color.FromArgb(192, 255, 255);
size = new Size(591, 367);
this.ClientSize = size;
this.Controls.Add(this.lblPort);
this.Controls.Add(this.lblPor);
this.Controls.Add(this.lblServerName);
this.Controls.Add(this.ServerN);
this.Name = "Form1";
this.Text = "Conquer Server Ports";
this.ResumeLayout(false);
this.PerformLayout();
}
private void ServerN_SelectedIndexChanged(object sender, EventArgs e)
{
if (Operators.CompareString(this.ServerN.Text, "Aquarius", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "BabyIcey", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Basilisk", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "BlueBird", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Cancer", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Capricorn", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Centaur", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Fire", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Fury", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Gemini", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "GreatWall", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Gryphon", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "HangingGardens", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Hebby", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Kanasai_US", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Leo", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Liberty", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Libra", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Light", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Lucky7", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Mausoleum", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Pegasus", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Pharos", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Nanya", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Pishu_EU", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Prosperity", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Pyramid", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Sagittarius", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Scorpio", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "SnowWhite", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "StatueOfZeus", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Storm", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Titan", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Unicorn", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "WildSwan", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Virgo", false) == 0)
{
this.lblPort.Text = "9959";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Volcano", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Venus", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Uranus", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Turquoise", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Triumph", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Tornado", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Tiger", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Thunder", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Sunshine", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Snowfall", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Saturn", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Ruby", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Pluto", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Phoenix", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Neptune", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Meteor", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Mercury", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Lion", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Lightning", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Kylin", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Honor", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Glory", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Freedom", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Faith", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Eternity", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Emerald", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Eagle", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Dream", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Dragon", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Dark", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Crystal", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "Blizzard", false) == 0)
{
this.lblPort.Text = "9960";
}
else
{
if (Operators.CompareString(this.ServerN.Text, "GardenOfEden", false) == 0)
{
this.lblPort.Text = "9964";
}
else
{
this.lblPort.Text = "Unknown";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Note it's not to piss you off, but the source code is so rubbish, that I thought I'd share it.