Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.loginWindow = ((QuanLyKho.LoginWindow)(target));
                return;

            case 2:
                this.ucContrlBar = ((QuanLyKho.UserControls.ControlBarUC)(target));
                return;

            case 3:
                this.txtTenDangNhap = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 5:
                this.btnDangNhap = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.loginWindow = ((QuanLyKho.LoginWindow)(target));
                return;

            case 2:
                this.FloatingPasswordBox = ((System.Windows.Controls.PasswordBox)(target));
                return;
            }
            this._contentLoaded = true;
        }