コード例 #1
0
        public LandingWindow(Session session)
        {
            Log.Debug("ctor");
            Build();

            AddTooltips();

            photowidgetPublic.SelectionChanged  += OnPublicSetSelectionChanged;
            photowidgetPrivate.SelectionChanged += OnPrivateSetSelectionChanged;
            albumsGrid.OnSelectionChanged       += OnAlbumsSelectionChanged;

            hboxPublicPrivate.Visible    = false;
            vbox1.Visible                = false;                     // All Public Photos
            vbox3.Visible                = false;                     // All Photos
            scrolledwindowPhotos.Visible = labelSets.Visible = false; // Albums;

            Title      += VersionHelper.GetVersionString();
            Preferences = session.Preferences;
            User        = session.User;

            AddSpinnerWidget();

            _presenter = Bootstrapper.GetPresenter <ILandingView, ILandingPresenter>(this);
            _presenter.Initialize();
        }
コード例 #2
0
        public LandingWindow(Session session) {
            Log.Debug("ctor");
            Build();

            AddTooltips();

            this.photowidgetPublic.SelectionChanged += OnPublicSetSelectionChanged;
            this.photowidgetPrivate.SelectionChanged += OnPrivateSetSelectionChanged;
            this.albumsGrid.OnSelectionChanged += OnAlbumsSelectionChanged;

            this.hboxPublicPrivate.Visible = false;
            this.vbox1.Visible = false; // All Public Photos
            this.vbox3.Visible = false; // All Photos
            this.scrolledwindowPhotos.Visible = this.labelSets.Visible = false; // Albums;

            Title += VersionHelper.GetVersionString();
            Preferences = session.Preferences;
            User = session.User;

            AddSpinnerWidget();

            this._presenter = Bootstrapper.GetPresenter<ILandingView, ILandingPresenter>(this);
            this._presenter.Initialize();
        }