Ejemplo n.º 1
0
        private void GoToExpanderView(BookInfo b)
        {
            ExpandShow exp;

            if (CC_MainEXP.Content == null || (CC_MainEXP.Content as ExpandShow) == null)
            {
                exp                = new ExpandShow();
                exp.Closed        += () => { GoToListView(); };
                CC_MainEXP.Content = exp;
            }
            else
            {
                exp = (CC_MainEXP.Content as ExpandShow);
            }
            CC_MainEXP.Visibility = Visibility.Visible;
            exp.BookInfo          = b;
            exp.RefreshText();
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((BookReader.ExpandShow)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.STK_Containner = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.TB_Main = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.EP_Buffering = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 6:
                this.RTF_Buffering = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 7:
                this.GD_Console = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.BTN_Back = ((System.Windows.Controls.Button)(target));
                return;

            case 9:
                this.BTN_Delete = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.BTN_Font = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.BTN_Pause = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.BTN_SysBegin = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.PH_Play = ((System.Windows.Shapes.Path)(target));
                return;

            case 14:
                this.BTN_Stop = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.SL_Bar = ((BookReader.MyProgressBar)(target));
                return;

            case 16:
                this.CA_ExpSL = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }