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 Activate()
		{
			this.lw = LoginWindow.GetInstance();
			this.isRC = this.lw.checkBox2.Active;
			Console.WriteLine("Is this rc? " + this.isRC.ToString() + "::" + this.lw.checkBox2.Active.ToString());
			if (this.isRC)
			{
				this.rc = RCWindow.GetInstance();
				this.rc.RunServer();
				this.rcpl = RCPlayerList.GetInstance();
				this.rcpl.Init();
			}
			else
			{
				this.mw = MainWindow.GetInstance();
				this.mw.RunServer();
			}
		}
 public void Activate()
 {
     this.lw   = LoginWindow.GetInstance();
     this.isRC = this.lw.checkBox2.Active;
     Console.WriteLine("Is this rc? " + this.isRC.ToString() + "::" + this.lw.checkBox2.Active.ToString());
     if (this.isRC)
     {
         this.rc = RCWindow.GetInstance();
         this.rc.RunServer();
         this.rcpl = RCPlayerList.GetInstance();
         this.rcpl.Init();
     }
     else
     {
         this.mw = MainWindow.GetInstance();
         this.mw.RunServer();
     }
 }
        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());
        }
		/// <summary>
		/// Constructor
		/// </summary>
		public ListServerConnection(Gtk.ListStore listStore)
		{
			this.serverWindow = ServerWindow.GetInstance();
			this.listStore = listStore;
			this.serverList = new TServerList();
			this.errorWindow = ErrorWindow.GetInstance();
			this.loginWindow = LoginWindow.GetInstance();
			//this.errorWindow.ShowAll();
			//this.errorWindow.Hide();
			//this.ReceiveData();
		}