public StoreWebBrowserShell (StoreView store_view) : base (Catalog.GetString ("Amazon MP3 Store"), store_view)
        {
            StoreView = store_view;

            Attach (new SignOutButton (StoreView) { Relief = ReliefStyle.None }, 2, 3, 0, 1,
                AttachOptions.Shrink,
                AttachOptions.Shrink,
                0, 0);

            SearchEntry.EmptyMessage = String.Format (Catalog.GetString ("Search the Amazon MP3 Store"));

            ShowAll ();
        }
        public StoreWebBrowserShell (StoreView store_view) : base (Catalog.GetString ("Amazon MP3 Store"), store_view)
        {
            StoreView = store_view;

            SearchEntry.EmptyMessage = String.Format (Catalog.GetString ("Search the Amazon MP3 Store"));

            NavigationControl.AddLink (Catalog.GetString ("How Your Purchases Support GNOME"), StoreView.GetActionUrl ("about/"));

            var signout = NavigationControl.AddLink ("Sign out of Amazon", null);
            store_view.SignInChanged += (o, a) => signout.Visible = store_view.IsSignedIn;
            signout.Activated += (o, a) => store_view.SignOut ();
            signout.Visible = store_view.IsSignedIn;

            ShowAll ();
        }
Beispiel #3
0
        public StoreWebBrowserShell(StoreView store_view) : base(Catalog.GetString("Amazon MP3 Store"), store_view)
        {
            StoreView = store_view;

            SearchEntry.EmptyMessage = String.Format(Catalog.GetString("Search the Amazon MP3 Store"));

            NavigationControl.AddLink(Catalog.GetString("How Your Purchases Support GNOME"), StoreView.GetActionUrl("about/"));

            var signout = NavigationControl.AddLink("Sign out of Amazon", null);

            store_view.SignInChanged += (o, a) => signout.Visible = store_view.IsSignedIn;
            signout.Activated        += (o, a) => store_view.SignOut();
            signout.Visible           = store_view.IsSignedIn;

            ShowAll();
        }
 public SignOutButton (StoreView storeView) : base (Catalog.GetString ("Sign out of Amazon"))
 {
     store_view = storeView;
     store_view.SignInChanged += (o, e) => UpdateSignInButton ();
     UpdateSignInButton ();
 }