Exemplo n.º 1
0
        private static SubsonicAPI.LoginResult HandleLogin(string host, string username, string password)
        {
            server = host;
            user   = username;

            return(Subsonic.LogIn(server, user, password));
        }
Exemplo n.º 2
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            string server   = tbServer.Text;
            string user     = tbUser.Text;
            string password = tbPassword.Text;

            string result = Subsonic.LogIn(server, user, password);

            tbResults.Text = result;

            btnGetSongs.Enabled = true;
        }
Exemplo n.º 3
0
        protected void btnLogIn_Click(object sender, System.EventArgs e)
        {
            string server   = "thefij.kicks-ass.net:4040";
            string username = tbUsername.Text;
            string password = tbPassword.Text;

            Subsonic.appName = "IansWebApp";
            string results = Subsonic.LogIn(server, username, password);

            if (results != "")
            {
                Response.Redirect("Library.aspx");
            }
        }
Exemplo n.º 4
0
    protected virtual void OnBtnLogin2Clicked(object sender, System.EventArgs e)
    {
        string server    = tbServer.Text;
        string user      = tbUsername.Text;
        string passw0rdd = tbPaassw0rd.Text;

        string loginResult = Subsonic.LogIn(server, user, passw0rdd);

        Console.WriteLine("Login Result: " + loginResult);

        SubsonicItem thisLibrary = Subsonic.MyLibrary;

        foreach (SubsonicItem artist in thisLibrary.children)
        {
            HTreeNode artistNode = new HTreeNode(artist.name);
            tvLibrary.Nodes.Add(artistNode);

            // Adding a dummy node for the artist
            artistNode.Nodes.Add(new HTreeNode(""));
        }
    }