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(); }
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 (); }