Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.NomeTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 2:
                this.CPFTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 3:
                this.Contato1TB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 4:
                this.MRB = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.FRB = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.EmailTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 7:
                this.DataNascimentoTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 8:
                this.Contato2TB = ((WPFClinica.UserControls.Campo)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.CEPTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 3:
                this.EstadoTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 4:
                this.CidadeTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 5:
                this.BairroTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 6:
                this.RuaTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 7:
                this.NumeroTB = ((WPFClinica.UserControls.Campo)(target));
                return;

            case 8:
                this.ComplementoTB = ((WPFClinica.UserControls.Campo)(target));
                return;
            }
            this._contentLoaded = true;
        }