public void Build()
		{
			this.loginWindow = LoginWindow.GetInstance();
			this.InitializeComponent();
			this.serverList = new TServerList();
			//this.errorWindow = new ErrorWindow();
			this.ShowAll();

			//this.Error("hello");
			this.LSConn = new ListServerConnection(this.musicListStore);
			if (this.loginWindow.nickname_ent != null && this.loginWindow.nickname_ent.Text != "")
				this.nickname = this.loginWindow.nickname_ent.Text;

			if (this.loginWindow.username_ent != null && this.loginWindow.username_ent.Text != "")
				this.username = this.loginWindow.username_ent.Text;

			if (this.loginWindow.password_ent != null && this.loginWindow.password_ent.Text != "")
				this.password = this.loginWindow.password_ent.Text;

			if (this.loginWindow.server != null && this.loginWindow.server.Text != "")
				this.server = this.loginWindow.server.Text;

			if (this.loginWindow.port != null && this.loginWindow.port.Text != "")
				int.TryParse(this.loginWindow.port.Text, out this.port);

			this.refreshButton_Click(this, new EventArgs());
			//this.loginButton_Click(this, new EventArgs());
			
		}
        public void Build()
        {
            this.loginWindow = LoginWindow.GetInstance();
            this.InitializeComponent();
            this.serverList = new TServerList();
            //this.errorWindow = new ErrorWindow();
            this.ShowAll();

            //this.Error("hello");
            this.LSConn = new ListServerConnection(this.musicListStore);
            if (this.loginWindow.nickname_ent != null && this.loginWindow.nickname_ent.Text != "")
            {
                this.nickname = this.loginWindow.nickname_ent.Text;
            }

            if (this.loginWindow.username_ent != null && this.loginWindow.username_ent.Text != "")
            {
                this.username = this.loginWindow.username_ent.Text;
            }

            if (this.loginWindow.password_ent != null && this.loginWindow.password_ent.Text != "")
            {
                this.password = this.loginWindow.password_ent.Text;
            }

            if (this.loginWindow.server != null && this.loginWindow.server.Text != "")
            {
                this.server = this.loginWindow.server.Text;
            }

            if (this.loginWindow.port != null && this.loginWindow.port.Text != "")
            {
                int.TryParse(this.loginWindow.port.Text, out this.port);
            }

            this.refreshButton_Click(this, new EventArgs());
            //this.loginButton_Click(this, new EventArgs());
        }