コード例 #1
0
		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());
			
		}
コード例 #2
0
		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();
			}
		}
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        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());
        }
コード例 #5
0
		/// <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();
		}