Beispiel #1
0
        private void PromptLogin()
        {
            SetStatus(Catalog.GetString("Logging in to {0}."), false);

            DaapLoginDialog dialog = new DaapLoginDialog(client.Name,
                                                         client.AuthenticationMethod == DAAP.AuthenticationMethod.UserAndPassword);

            if (dialog.Run() == (int)Gtk.ResponseType.Ok)
            {
                AuthenticatedLogin(dialog.Username, dialog.Password);
            }
            else
            {
                ShowErrorView(DaapErrorType.UserDisconnect);
            }

            dialog.Destroy();
        }
Beispiel #2
0
        private void PromptLogin()
        {
            SetStatus (Catalog.GetString ("Logging in to {0}."), false);

            DaapLoginDialog dialog = new DaapLoginDialog (client.Name,
            client.AuthenticationMethod == DAAP.AuthenticationMethod.UserAndPassword);
            if (dialog.Run () == (int) Gtk.ResponseType.Ok) {
                AuthenticatedLogin (dialog.Username, dialog.Password);
            } else {
                ShowErrorView (DaapErrorType.UserDisconnect);
            }

            dialog.Destroy ();
        }