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 ();
        }
Ejemplo n.º 2
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 ();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
0
 public SignOutButton (StoreView storeView) : base (Catalog.GetString ("Sign out of Amazon"))
 {
     store_view = storeView;
     store_view.SignInChanged += (o, e) => UpdateSignInButton ();
     UpdateSignInButton ();
 }